/** * Get the PR angular position (i.e. the twist between the 2 bodies) * * When the axis is set, the current position of the attached bodies is * examined and that position will be the zero position. * @param j j * @return r */ //ODE_API public static double dJointGetPRAngle (DPRJoint j) { return j.getAngle(); }
DVector3 anchor = new DVector3(); joint.getAnchor(anchor); double angle = joint.getAngle(); double w = joint.getAngleRate();
/** * Get the PR angular position (i.e. the twist between the 2 bodies) * * When the axis is set, the current position of the attached bodies is * examined and that position will be the zero position. * @param j j * @return r */ //ODE_API public static double dJointGetPRAngle (DPRJoint j) { return j.getAngle(); }