From ad2a9e623031712fd890a6544bfebbec50abd0e3 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Fri, 22 Sep 2017 13:51:49 -0400 Subject: [PATCH] Revert "Resolving issue in ticket #661. Creating skelton debugger that allows bones to be extended in any direction instead of only the Y direction. (#681)" This reverts commit 989c7926df8d1bccb635b97f55da7c05bfad60ad. --- .../main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java b/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java index 88a5345da..7367ff512 100644 --- a/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java +++ b/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java @@ -84,7 +84,7 @@ public class SkeletonInterBoneWire extends Mesh { } /** - * The method updates the geometry according to the positions of the bones. + * The method updates the geometry according to the poitions of the bones. */ public void updateGeometry() { VertexBuffer vb = this.getBuffer(Type.Position); @@ -92,7 +92,7 @@ public class SkeletonInterBoneWire extends Mesh { posBuf.clear(); for (int i = 0; i < skeleton.getBoneCount(); ++i) { Bone bone = skeleton.getBone(i); - Vector3f parentTail = bone.getModelSpacePosition().add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_XYZ.mult(boneLengths.get(i)))); + Vector3f parentTail = bone.getModelSpacePosition().add(bone.getModelSpaceRotation().mult(Vector3f.UNIT_Y.mult(boneLengths.get(i)))); for (Bone child : bone.getChildren()) { Vector3f childHead = child.getModelSpacePosition();