accelerate after bounce
ShaunElery
Member, PRO Posts: 148
I want enemy actors to bounce off my hero's force field. I got them to bounce but they move very slowly. I want them to accelerate in what ever direction they are moving after the bounce. How can I do that?
thank you
thank you
Comments
If I accelerate X it only moves in the X dimension. I want it to accelerate in the direction it is already moving in because of the bounce. Is there a way to get the direction of an actor?
When actor overlaps or collides with actor of type force-field
--Timer (after) .01 seconds
----Change Velocity
------Direction: vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )
------Speed: 500