Hey,
i am using btHingeConstraints for wheels of a differential drive. you are able to control the velocity during runtime. to set the velocity i use
constraint->enableAngularMotor(true, velocity, impulse);
everything works and the velocities are set correctly. but only if the initial velocity is not zero and if you don't set the velocity to zero during runtime.
when the velocity is zero once the motor doesn't start to rotate again no matter what velocity you set...
i tried several other ways but it doesn't work.
can someone help me please? i don't know why the motor isn't able to start out of rest and i don't know what i can do to change that...
i'd be very happy if someone could solve this problem!
Daniel
angular motor of btHingeConstraint
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: angular motor of btHingeConstraint
You object is likely put asleep, and you have to manually wake it up.
You can use body->activate();
Please let us know if that works for you.
Thanks,
Erwin
You can use body->activate();
Please let us know if that works for you.
Thanks,
Erwin
-
- Posts: 33
- Joined: Tue Jun 05, 2012 8:43 am
Re: angular motor of btHingeConstraint
we also found out that the problem occurs because of the deactivation of the rigid bodies. so now it's working!