Breaking Friction

AntiMatter
Posts: 6
Joined: Tue Mar 05, 2013 11:28 pm

Breaking Friction

Post by AntiMatter »

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.
AntiMatter
Posts: 6
Joined: Tue Mar 05, 2013 11:28 pm

Re: Breaking Friction

Post by AntiMatter »

Never mind. Found the problem, i needed to activate the object. So i called btRigidBody::setActivationState(true).

Was this correct?
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: Breaking Friction

Post by xexuxjy »

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.
AntiMatter
Posts: 6
Joined: Tue Mar 05, 2013 11:28 pm

Re: Breaking Friction

Post by AntiMatter »

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.