bthingeconstraint setlimit with default angle ?

Motohime
Posts: 2
Joined: Mon Aug 04, 2014 8:08 am

bthingeconstraint setlimit with default angle ?

Post 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 ?