Currently, when i press "up" on the keyboard, i simply change my players velocity by adding a constant variable to the body's linear velocity vector's y value. However, i would like force/impuse/change in velocity(not quite sure, what is the right word) to be applied just beneath the body, even when it is rotated.
A picture probably shows better what i want:
http://img406.imageshack.us/my.php?imag ... 121fj7.jpg
I also have another small question. Is it possible to determine if a body has collided with static and dynamic bodies? For example, to check if Body1(dynamic) has collided with GroundBody(static).
A picture probably shows better what i want:
http://img406.imageshack.us/my.php?imag ... 121fj7.jpg
I also have another small question. Is it possible to determine if a body has collided with static and dynamic bodies? For example, to check if Body1(dynamic) has collided with GroundBody(static).