PlayMaker Updates & Downloads > Share New Actions

NavMeshAgent knockback action

<< < (2/2)

mdotstrange:
Are you using a Navmesh agent?

I found the proper way to do it with a NavMesh agent is to also use a rigidbody- this is the way I do it now-

So when the agent is hit you switch off the NavmeshAgent- then enable the rigidbody + add a physics force and let that play out for a bit- this way agents can fall from heights etc-

I'll make a new version of this that incorporates that and post it here soon-

christougher:
Looking forward to it!  yes, I'm using a navmesh agent and have a rigidbody as well.  I've tried setting the navmesh agent's updateposition to false and applying force and seem to get inconsistent results...  sometimes it works perfect, sometimes it doesn't seem to click... so, looking forward to seeing it.

christougher:
Ever get around to making this?  :D

Nateprinceaudio:
Hear is a simple Knock Back Action for navmesh agents i made hope it helps.
it uses the navmeshagent.move so offsets the current path of the agent
you just plug in the players Game object and it works out the knockback via the players position to the enemy.

Navigation

[0] Message Index

[*] Previous page

Go to full version