[cgkit-user] regarding ode joints

Hi:
how do I make it so that when I join two bodies together with a joint
(a hinge joint), the joint axis and anchor doesn't change all the
time? Currentyl whenever I print the value of the joints anchor and
axis, I get a different value. The difference is minimal, but I want
the joint to be exactly on the same place all the time.
With regards,
ricardo

Thread view

Hi:
how do I make it so that when I join two bodies together with a joint
(a hinge joint), the joint axis and anchor doesn't change all the
time? Currentyl whenever I print the value of the joints anchor and
axis, I get a different value. The difference is minimal, but I want
the joint to be exactly on the same place all the time.
With regards,
ricardo

Ricardo Kirkner wrote:
> how do I make it so that when I join two bodies together with a joint
> (a hinge joint), the joint axis and anchor doesn't change all the
> time? Currentyl whenever I print the value of the joints anchor and
> axis, I get a different value. The difference is minimal, but I want
> the joint to be exactly on the same place all the time.
How did you read those values? From the "odejoint" attribute? Then this
is just the unmodified value that ODE returns and there's nothing I can
do about it.
If you already know that the values should be constant, would it be an
option to read it only at the beginning and store it somewhere for later
use?
- Matthias -