Class RagdollPreset.JointPreset

java.lang.Object
com.jme3.bullet.control.ragdoll.RagdollPreset.JointPreset
Enclosing class:
RagdollPreset

protected class RagdollPreset.JointPreset extends Object
Range of motion for a joint.
  • Constructor Details

    • JointPreset

      public JointPreset()
      Instantiate a preset with no motion allowed.
    • JointPreset

      public JointPreset(float maxX, float minX, float maxY, float minY, float maxZ, float minZ)
      Instantiate a preset with the specified range of motion.
      Parameters:
      maxX - the maximum rotation on the X axis (in radians)
      minX - the minimum rotation on the X axis (in radians)
      maxY - the maximum rotation on the Y axis (in radians)
      minY - the minimum rotation on the Y axis (in radians)
      maxZ - the maximum rotation on the Z axis (in radians)
      minZ - the minimum rotation on the Z axis (in radians)
  • Method Details

    • setupJoint

      public void setupJoint(SixDofJoint joint)
      Apply this preset to the specified joint.
      Parameters:
      joint - where to apply (not null, modified)