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

experimental
Nehon 10 years ago
parent 5ac1d63bb9
commit 39515c52c7
  1. 2
      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 = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml");
//model.setLocalScale(0.5f); //model.setLocalScale(0.5f);
model.addControl(character); model.addControl(character);
character.setPhysicsLocation(new Vector3f(-140, 15, -10)); character.setPhysicsLocation(new Vector3f(-140, 40, -10));
rootNode.attachChild(model); rootNode.attachChild(model);
getPhysicsSpace().add(character); getPhysicsSpace().add(character);
} }

Loading…
Cancel
Save