Disabling any torque from acting on a rigid body
-
- Posts: 6
- Joined: Mon Apr 29, 2013 1:30 am
Disabling any torque from acting on a rigid body
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 ?
-
- Posts: 21
- Joined: Mon Feb 11, 2013 1:57 pm
Re: Disabling any torque from acting on a rigid body
I think you could try setting the angular factor to 0 on that rigid body using btRigidBody::setAngularFactor.
-
- Posts: 6
- Joined: Mon Apr 29, 2013 1:30 am
Re: Disabling any torque from acting on a rigid body
yup got it!! thanks