So I've got a box that moves around. As long as the box does not come to a rest, I can move it by using btRigidBody::applyCentralForce(). But once the box comes to a rest, I cannot move it anymore. I would like to beak friction, and i tried applying an impulse, but that didn't work.
Thanks for the help.
Breaking Friction
-
- Posts: 6
- Joined: Tue Mar 05, 2013 11:28 pm
Re: Breaking Friction
Never mind. Found the problem, i needed to activate the object. So i called btRigidBody::setActivationState(true).
Was this correct?
Was this correct?
-
- Posts: 225
- Joined: Wed Jan 07, 2009 11:43 am
- Location: London
Re: Breaking Friction
Pretty much... though you can also set the state to DisableDeactivation as well so it never becomes inactive. thats fine for a few objects but not recommended for everything.
-
- Posts: 6
- Joined: Tue Mar 05, 2013 11:28 pm
Re: Breaking Friction
I don't plan on having a lot of objects, maybe 20 at most, but they will not be together. Its probably better that I do it like this.
Thanks for the help.
Thanks for the help.