Change the direction of the hinge

Tony
Posts: 6
Joined: Tue Sep 03, 2013 1:36 pm

Change the direction of the hinge

Post by Tony »

Hi,

I built a hinge constraint , with the dbgDrawer, I can see the hinge direction. Can i change the direction of the hinge not on the constructor.

thanks!
Epileftric
Posts: 10
Joined: Mon Sep 09, 2013 4:54 pm
Location: Buenos Aires, Argentina

Re: Change the direction of the hinge

Post by Epileftric »

I think the method

Code: Select all

void 	setAxis (btVector3 &axisInA)
does what you need
Tony
Posts: 6
Joined: Tue Sep 03, 2013 1:36 pm

Re: Change the direction of the hinge

Post by Tony »

Epileftric wrote:I think the method

Code: Select all

void 	setAxis (btVector3 &axisInA)
does what you need
yes,Thanks!