浏览代码

but anyway, there you go

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10461 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 12 年之前
父节点
当前提交
ee4834d9dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java

+ 1 - 1
engine/src/bullet-common/com/jme3/bullet/debug/BulletGhostObjectDebugControl.java

@@ -84,7 +84,7 @@ public class BulletGhostObjectDebugControl extends AbstractPhysicsDebugControl {
             geom.setMaterial(debugAppState.DEBUG_YELLOW);
             geom.setMaterial(debugAppState.DEBUG_YELLOW);
             node.attachChild(geom);
             node.attachChild(geom);
         }
         }
-        applyPhysicsTransform(body.getPhysicsLocation(location), Quaternion.IDENTITY);
+        applyPhysicsTransform(body.getPhysicsLocation(location), body.getPhysicsRotation(rotation));
         geom.setLocalScale(body.getCollisionShape().getScale());
         geom.setLocalScale(body.getCollisionShape().getScale());
     }
     }