Class IKJoint

java.lang.Object
com.jme3.bullet.animation.IKJoint
All Implemented Interfaces:
com.jme3.export.Savable, com.jme3.util.clone.JmeCloneable, Cloneable

public class IKJoint extends Object implements com.jme3.util.clone.JmeCloneable, com.jme3.export.Savable
A Constraint used for inverse kinematics (as opposed to joining bones and/or attachments).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Logger
    message logger for this class
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    No-argument constructor needed by SavableClassUtil.
     
    IKJoint(Constraint constraint, boolean disableForRagdoll)
    Instantiate a new IK joint.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cloneFields(com.jme3.util.clone.Cloner cloner, Object original)
    Callback from Cloner to convert this shallow-cloned link into a deep-cloned one, using the specified Cloner and original to resolve copied fields.
    Access the underlying Constraint.
    boolean
    Test whether to disable the Constraint when entering ragdoll mode.
    Create a shallow clone for the JME cloner.
    void
    read(com.jme3.export.JmeImporter importer)
    De-serialize this joint from the specified importer, for example when loading from a J3O file.
    void
    setDisableForRagdoll(boolean disableForRagdoll)
    Alter whether to disable the Constraint when entering ragdoll mode.
    void
    write(com.jme3.export.JmeExporter exporter)
    Serialize this joint to the specified exporter, for example when saving to a J3O file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Constructor Details

    • IKJoint

      protected IKJoint()
      No-argument constructor needed by SavableClassUtil.
    • IKJoint

      public IKJoint(Constraint constraint, boolean disableForRagdoll)
      Instantiate a new IK joint.
      Parameters:
      constraint - the underlying Constraint (not null, alias created)
      disableForRagdoll - true→disable the Constraint when entering ragdoll mode, false→unaffected by ragdoll mode
  • Method Details

    • getPhysicsJoint

      public Constraint getPhysicsJoint()
      Access the underlying Constraint.
      Returns:
      the pre-existing joint (not null)
    • isDisableForRagdoll

      public boolean isDisableForRagdoll()
      Test whether to disable the Constraint when entering ragdoll mode.
      Returns:
      true to disable, otherwise false
    • setDisableForRagdoll

      public void setDisableForRagdoll(boolean disableForRagdoll)
      Alter whether to disable the Constraint when entering ragdoll mode.
      Parameters:
      disableForRagdoll - true to disable, false to be unaffected
    • cloneFields

      public void cloneFields(com.jme3.util.clone.Cloner cloner, Object original)
      Callback from Cloner to convert this shallow-cloned link into a deep-cloned one, using the specified Cloner and original to resolve copied fields.
      Specified by:
      cloneFields in interface com.jme3.util.clone.JmeCloneable
      Parameters:
      cloner - the Cloner that's cloning this link (not null)
      original - the instance from which this link was shallow-cloned (unused)
    • jmeClone

      public IKJoint jmeClone()
      Create a shallow clone for the JME cloner.
      Specified by:
      jmeClone in interface com.jme3.util.clone.JmeCloneable
      Returns:
      a new instance
    • read

      public void read(com.jme3.export.JmeImporter importer) throws IOException
      De-serialize this joint from the specified importer, for example when loading from a J3O file.
      Specified by:
      read in interface com.jme3.export.Savable
      Parameters:
      importer - (not null)
      Throws:
      IOException - from the importer
    • write

      public void write(com.jme3.export.JmeExporter exporter) throws IOException
      Serialize this joint to the specified exporter, for example when saving to a J3O file.
      Specified by:
      write in interface com.jme3.export.Savable
      Parameters:
      exporter - (not null)
      Throws:
      IOException - from the exporter