use physic constant force to attract nav mesh agent off the navigation
Hi, i'm working on an TD game
so all the enmeny in the game are using nav mash for the pathing finding and RVO(reciprocal velocity obstacles)
but i want design an trap which can attact enemy move toward to the trap, and in font of the trap have magmatic water, which if enemy drop into it will reduce blood.
when i bake the scene navigation, is not include the magmatic water part road, so normally enemey won't stamp onto it
when he enter the trap detection zone, i will add an constant force on it, and toward to the trap.
the enemy will have constant force and nav mash agent component on it at the same time. and those two 'force' are opposite direction ,so it look like it's make the enemy struggle from the trap , but ultimately absorb into it.
it's woking fine when the enmey inside the navigation road. but at the edge of the road , i can't move it ,no matter how big the force i set to.
i read the API doc, said can't use the physic and navigation at the same time . but how can i achieve it?
thanks.
Your answer
Follow this Question
Related Questions
NavmeshAgent too far away after Unity Update 2 Answers
NavMesh Agent Navigating Instantiated Environment? 0 Answers
NavMesh agent ignores radius between areas 0 Answers
Let specific NavMesh Agents ignore some Area costs 0 Answers
Navmesh has some problems? 0 Answers