- fix TestWalkingChar shooting

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8455 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent a71340c196
commit 2055bf0fe3
  1. 4
      engine/src/test/jme3test/bullet/TestWalkingChar.java

@ -186,7 +186,7 @@ public class TestWalkingChar extends SimpleApplication implements ActionListener
private void addBrick(Vector3f ori) {
Geometry reBoxg = new Geometry("brick", brick);
reBoxg.setMaterial(matRock);
reBoxg.setMaterial(matBullet);
reBoxg.setLocalTranslation(ori);
reBoxg.addControl(new RigidBodyControl(1.5f));
reBoxg.setShadowMode(ShadowMode.CastAndReceive);
@ -397,7 +397,7 @@ public class TestWalkingChar extends SimpleApplication implements ActionListener
Geometry bulletg = new Geometry("bullet", bullet);
bulletg.setMaterial(matBullet);
bulletg.setShadowMode(ShadowMode.CastAndReceive);
bulletg.setLocalTranslation(character.getPhysicsLocation().add(cam.getDirection().mult(2)));
bulletg.setLocalTranslation(character.getPhysicsLocation().add(cam.getDirection().mult(5)));
RigidBodyControl bulletControl = new BombControl(bulletCollisionShape, 1);
bulletControl.setCcdMotionThreshold(0.1f);
bulletControl.setLinearVelocity(cam.getDirection().mult(80));

Loading…
Cancel
Save