Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actual~Helgon

Posted 17 December 2012 - 12:44 AM

What always works good is if both objects have a velocity

For example your vehicle: 100 speed units

Your Enemie 25 speed units

Your new Velocity := V1 - V2 = 75
Enemy Velocity = V2 - V1 = -25

Edit: The velocity of course should be a vector so you can move in each axis direction)

Just for example..

So you move slower but at the same time you push the enemy back and no one stuck (and it works with much more objects)

Regards

#1~Helgon

Posted 17 December 2012 - 12:43 AM

What always works good is if both objects have a velocity

For example your vehicle: 100 speed units

Your Enemie 25 speed units

Your new Velocity := V1 - V2 = 75
Enemy Velocity = V2 - V1 = -25

Just for example..

So you move slower but at the same time you push the enemy back and no one stuck (and it works with much more objects)

Regards

PARTNERS