[SOLVED] Objects falling and colliding but not rotating

Pacha
Posts: 26
Joined: Sat Jun 15, 2013 2:29 am

[SOLVED] Objects falling and colliding but not rotating

Post by Pacha »

I have been stuck with this for days. Here is a screenshot: http://i.imgur.com/tuenQXg.jpg

I am adding brRigidBody to the world, and gravity applies to them but they never rotate. I am working with a co-worker's code and it is really messy, I checked all the instances of the btRigidBody and it never sets setAngularFactor to 0.

Does somebody knows what might be the cause of this? Thanks.
Last edited by Pacha on Sat Jul 06, 2013 1:58 am, edited 1 time in total.
Mako_energy02
Posts: 171
Joined: Sun Jan 17, 2010 4:47 am

Re: Objects falling and colliding but not rotating

Post by Mako_energy02 »

My first thought is the local inertia. When creating the Rigid body and applying the collision shape to it, are you calculating the local inertia? That step is covered here in the "Rigid Bodies" section: http://bulletphysics.org/mediawiki-1.5. ... ello_World
Pacha
Posts: 26
Joined: Sat Jun 15, 2013 2:29 am

Re: Objects falling and colliding but not rotating

Post by Pacha »

Mako_energy02 wrote:My first thought is the local inertia. When creating the Rigid body and applying the collision shape to it, are you calculating the local inertia? That step is covered here in the "Rigid Bodies" section: http://bulletphysics.org/mediawiki-1.5. ... ello_World
Can't believe I am so stupid. Thanks!