This project has moved. For the latest updates, please go here.

Making moving characters respond to explosions in top view

Topics: Developer Forum
Jan 7, 2014 at 2:03 PM

I am working on a top view game where I have AI characters moving around (on a path) using ApplyLinearImpulse on every update and then capping it to a maxspeed by changing the linear velocity.

Now I would like to add explosions to the game and want the AI characters to respond to them, pushing them back.

What would be the recommended way to implement something like this? Simply setting a force to a different direction just gets ignored by the movement code.
Jan 12, 2014 at 3:15 PM
It's best not to set linear velocity directly. instead stop applying linear impulses when linear velocity is more than or equal to maxspeed.

Then explosions should work.