/** * Set the joint limits for the joint between the given bone and its parent. This method can't * work before attaching the control to a spatial * * @param boneName the name of the bone * @param maxX the maximum rotation on the x axis (in radians) * @param minX the minimum rotation on the x axis (in radians) * @param maxY the maximum rotation on the y axis (in radians) * @param minY the minimum rotation on the z axis (in radians) * @param maxZ the maximum rotation on the z axis (in radians) * @param minZ the minimum rotation on the z axis (in radians) */ public void setJointLimit( String boneName, float maxX, float minX, float maxY, float minY, float maxZ, float minZ) { PhysicsBoneLink link = boneLinks.get(boneName); if (link != null) { RagdollUtils.setJointLimit(link.joint, maxX, minX, maxY, minY, maxZ, minZ); } else { logger.log( Level.WARNING, "Not joint was found for bone {0}. make sure you call spatial.addControl(ragdoll) before setting joints limit", boneName); } }