Class ArmatureInterJointsWire

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

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

    • ArmatureInterJointsWire

      protected ArmatureInterJointsWire()
      For serialization only. Do not use.
    • ArmatureInterJointsWire

      public ArmatureInterJointsWire(Vector3f start, Vector3f[] ends)
      Creates a new ArmatureInterJointsWire mesh. The mesh will be set up to draw lines from the start vector to each of the ends vectors.
      Parameters:
      start - The starting point of the lines (e.g., the bone tail's position). Not null.
      ends - An array of ending points for the lines (e.g., the children's head positions). Not null.
  • Method Details

    • updateGeometry

      protected void updateGeometry(Vector3f start, Vector3f[] ends)
      Updates the geometry of this mesh based on the provided start and end points. This method re-generates the position, texture coordinate, normal, and index buffers for the mesh.
      Parameters:
      start - The new starting point for the lines. Not null.
      ends - An array of new ending points for the lines. Not null.
    • updatePoints

      public void updatePoints(Vector3f start, Vector3f[] ends)
      Update the start and end points of the line.
      Parameters:
      start - location vector (not null, unaffected)
      ends - array of location vectors (not null, unaffected)