From 2055bf0fe32f651d9be46466d937bf873f3c2364 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 18 Oct 2011 22:44:51 +0000 Subject: [PATCH] - fix TestWalkingChar shooting git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8455 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/test/jme3test/bullet/TestWalkingChar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/test/jme3test/bullet/TestWalkingChar.java b/engine/src/test/jme3test/bullet/TestWalkingChar.java index c5d394da6..407d3b698 100644 --- a/engine/src/test/jme3test/bullet/TestWalkingChar.java +++ b/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));