JointAxis wrong rotation direction?

Hi guys,

I am trying to create a robot structure with jmePhysics and I noticed the following:

When applying a velocity on a rotational joint axis, the object rotates in the opposite direction I was expecting…

JointAxis axis = joint.createRotationalAxis();

axis.setDirection( axisZ );

axis.setDesiredVelocity( 10 );

The body rotates in a right handed way around the yellow line representing the rotational axis (debug physics on), but this axis is fact reversed to the direction it was set. I explored the PhysicsDebugger to better understand the situation, and I see that the joint axis representation is in fact going from the anchor point to the negated axis direction.

So my questions are:

  • Are my observations consistent with what the jmePhysics expected behavior?
  • If yes, is there any reason for this left handed rotation?

    I could just always reverse my rotation axis at creation, but before doing so I would have like to make sure that I have a good grasp on the issue.

    Thanks in advance