btGeneric6DofConstraint linear position

dcofer
Posts: 14
Joined: Mon Feb 18, 2013 3:38 pm

btGeneric6DofConstraint linear position

Post by dcofer »

Is there a way to retrieve the linear position of a given joint axis within the btGeneric6DofConstraint constraint? I am basically looking for something similar to getLinearPos() of the btSliderConstraint, but so far I have not been able to find anything. I noticed that the btRotationalLimitMotor structure actually has a m_currentPosition variable, but there is nothing similar for the btTranslationalLimitMotor.
dcofer
Posts: 14
Joined: Mon Feb 18, 2013 3:38 pm

Re: btGeneric6DofConstraint linear position

Post by dcofer »

I looked through the code a little more and I believe I figured this one out. I needed to use the m_currentLinearDiff variable of the btTranslationalLimitMotor.