소스 검색

Relocated the character in TestWalkingChar so that it doesn't fall under the ground

Nehon 10 년 전
부모
커밋
39515c52c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java

+ 1 - 1
jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java

@@ -297,7 +297,7 @@ public class TestWalkingChar extends SimpleApplication implements ActionListener
         model = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml");
         //model.setLocalScale(0.5f);
         model.addControl(character);
-        character.setPhysicsLocation(new Vector3f(-140, 15, -10));
+        character.setPhysicsLocation(new Vector3f(-140, 40, -10));
         rootNode.attachChild(model);
         getPhysicsSpace().add(character);
     }