Class SkeletonInterBoneWire

java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.debug.SkeletonInterBoneWire
All Implemented Interfaces:
Savable, JmeCloneable, Cloneable

public class SkeletonInterBoneWire extends Mesh
A class that displays a dotted line between a bone tail and its children's heads.
  • Constructor Details

    • SkeletonInterBoneWire

      public SkeletonInterBoneWire(Skeleton skeleton, Map<Integer,Float> boneLengths)
      Creates buffers for points. Each line has POINT_AMOUNT of points.
      Parameters:
      skeleton - the skeleton that will be showed
      boneLengths - the lengths of the bones
    • SkeletonInterBoneWire

      protected SkeletonInterBoneWire()
      For serialization only. Do not use.
  • Method Details

    • updateGeometry

      public void updateGeometry()
      This method updates the geometry according to the positions of the bones.
    • read

      public void read(JmeImporter importer) throws IOException
      De-serializes from the specified importer, for example when loading from a J3O file.
      Specified by:
      read in interface Savable
      Overrides:
      read in class Mesh
      Parameters:
      importer - the importer to use (not null)
      Throws:
      IOException - from the importer
    • write

      public void write(JmeExporter exporter) throws IOException
      Serializes to the specified exporter, for example when saving to a J3O file. The current instance is unaffected.
      Specified by:
      write in interface Savable
      Overrides:
      write in class Mesh
      Parameters:
      exporter - the exporter to use (not null)
      Throws:
      IOException - from the exporter