edit: [solved; see next post]
Hello,
I have a very simple Bullet program which has a rectangular rod sitting freely on a ground plane. When I push the rod from one of the end by colliding another object into it, the rod moves in the direction of the push, but it does not seem to rotate at all. I expect it to rotate at least a little bit; since most of the time in real life when I have something sitting on the table and I push it on the corner it will rotate...
I have tried to tweak the angular damping and angular factor of the rigid body (calling updateInertiaTensor afterwards), but it does not seem to change much. The object rotates very little.
Does anyone know what I might be doing wrong?
I have seen a thread this forum about what looks like a similar issue, but there seems to be no official resolution:
http://www.bulletphysics.org/Bullet/php ... f=9&t=3859
[fixed] Rotational Friction
-
chrisvo
- Posts: 2
- Joined: Mon Oct 04, 2010 6:31 pm
[fixed] Rotational Friction
Last edited by chrisvo on Wed Oct 06, 2010 2:12 am, edited 2 times in total.
-
chrisvo
- Posts: 2
- Joined: Mon Oct 04, 2010 6:31 pm
Re: Rotational Friction
SOLVED!
I did what this guy did:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=5732
I did not properly compute the local inertia. That's all!
I did what this guy did:
http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=5732
I did not properly compute the local inertia. That's all!