Class KinematicRagdollControl.PhysicsBoneLink

java.lang.Object
com.jme3.bullet.control.KinematicRagdollControl.PhysicsBoneLink
All Implemented Interfaces:
Savable
Enclosing class:
KinematicRagdollControl

public class KinematicRagdollControl.PhysicsBoneLink extends Object implements Savable
Link a bone to a jointed rigid body.
  • Field Details

  • Constructor Details

    • PhysicsBoneLink

      public PhysicsBoneLink()
      Instantiate an uninitialized link.
  • Method Details

    • getBone

      public Bone getBone()
      Access the linked bone.
      Returns:
      the pre-existing instance or null
    • getRigidBody

      public PhysicsRigidBody getRigidBody()
      Access the linked body.
      Returns:
      the pre-existing instance or null
    • write

      public void write(JmeExporter ex) throws IOException
      Serialize this bone link, for example when saving to a J3O file.
      Specified by:
      write in interface Savable
      Parameters:
      ex - exporter (not null)
      Throws:
      IOException - from exporter
    • read

      public void read(JmeImporter im) throws IOException
      De-serialize this bone link, for example when loading from a J3O file.
      Specified by:
      read in interface Savable
      Parameters:
      im - importer (not null)
      Throws:
      IOException - from importer