Package com.jme3.scene.debug.custom
Class ArmatureInterJointsWire
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.debug.custom.ArmatureInterJointsWire
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
A class that displays a dotted line between a bone tail and its children's heads.
-
Nested Class Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
For serialization only.ArmatureInterJointsWire
(Vector3f start, Vector3f[] ends) Creates a newArmatureInterJointsWire
mesh. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
updateGeometry
(Vector3f start, Vector3f[] ends) Updates the geometry of this mesh based on the provided start and end points.void
updatePoints
(Vector3f start, Vector3f[] ends) Update the start and end points of the line.Methods inherited from class com.jme3.scene.Mesh
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, read, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts, write
-
Constructor Details
-
ArmatureInterJointsWire
protected ArmatureInterJointsWire()For serialization only. Do not use. -
ArmatureInterJointsWire
Creates a newArmatureInterJointsWire
mesh. The mesh will be set up to draw lines from thestart
vector to each of theends
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
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
Update the start and end points of the line.- Parameters:
start
- location vector (not null, unaffected)ends
- array of location vectors (not null, unaffected)
-