Keep upstraight constraint

Xilliah
Posts: 5
Joined: Fri Apr 18, 2008 11:20 am

Keep upstraight constraint

Post by Xilliah »

Hey guys!

I decided to switch from Newton to Bullet. Everything works out fine, except that I am unable to create/find a keep upstraight constraint.

I want a body with this "constraint" to try to align itself with a vector. Where should I put the code? In some sort of callback or custom constraint, or just between steps?

Thanks maties,
X
pico
Posts: 229
Joined: Sun Sep 30, 2007 7:58 am

Re: Keep upstraight constraint

Post by pico »

Hi,

you may want to check out this thread:

http://www.bulletphysics.com/Bullet/php ... it=upright

regards