Rotation with body

apokalypsadestroyer
Posts: 5
Joined: Thu May 10, 2007 9:06 pm

Rotation with body

Post by apokalypsadestroyer »

i move the body with applyimpuls, then i need to rotate, what implementation i must use to move the body in direction?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Post by Erwin Coumans »

You can try to use 'applyTorqueImpulse' for rotation.

Controlling a character motion using a rigidbody is tricky. Many games/applications use their own model to move around a model, just based on collision detection, but without rigidbody dynamics.

A character controller demo is on the long todolist...
Hope this helps,
Erwin