Disabling any torque from acting on a rigid body

sisilmet2000
Posts: 6
Joined: Mon Apr 29, 2013 1:30 am

Disabling any torque from acting on a rigid body

Post by sisilmet2000 »

I have a rigid body that collides with objects when moving. However I dont want any torque to act on the body as I dont want the body to rotate at all. How do i disable any torque acting on the body or avoid any torque calculations happening in the physics engine ?
norbie
Posts: 21
Joined: Mon Feb 11, 2013 1:57 pm

Re: Disabling any torque from acting on a rigid body

Post by norbie »

I think you could try setting the angular factor to 0 on that rigid body using btRigidBody::setAngularFactor.
sisilmet2000
Posts: 6
Joined: Mon Apr 29, 2013 1:30 am

Re: Disabling any torque from acting on a rigid body

Post by sisilmet2000 »

yup got it!! thanks