Page 1 of 1

bthingeconstraint setlimit with default angle ?

Posted: Tue Aug 12, 2014 3:24 pm
by Motohime
Hi

I try to use a bthingeConstraint with limit which look like :

Code: Select all

btHingeConstraint* lConstraint = new btHingeConstraint(*a_bodyA,*a_bodyB,pivotInA,pivotInB,AxisInA,AxisInB,false);
lConstraint->setLimit(-0.5,0.5);
The limits work fine but i need to add a default angle between my lower and upper limit (exemple 0.2).

Actually it seems that my "a_BodyA" take the lower value per default.

How can i do this plz ?