Home | History | Annotate | Download | only in bullet

Lines Matching defs:bulletg

130             Geometry bulletg = new Geometry("bullet", bullet);

131 bulletg.setMaterial(mat);
132 bulletg.setName("bullet");
133 bulletg.setLocalTranslation(cam.getLocation());
134 bulletg.setShadowMode(ShadowMode.CastAndReceive);
135 bulletg.addControl(new RigidBodyControl(bulletCollisionShape, 1));
136 bulletg.getControl(RigidBodyControl.class).setCcdMotionThreshold(0.1f);
137 bulletg.getControl(RigidBodyControl.class).setLinearVelocity(cam.getDirection().mult(40));
138 rootNode.attachChild(bulletg);
139 getPhysicsSpace().add(bulletg);
141 Geometry bulletg = new Geometry("bullet", bullet);
142 bulletg.setMaterial(mat2);
143 bulletg.setName("bullet");
144 bulletg.setLocalTranslation(cam.getLocation());
145 bulletg.setShadowMode(ShadowMode.CastAndReceive);
146 bulletg.addControl(new RigidBodyControl(bulletCollisionShape, 1));
147 bulletg.getControl(RigidBodyControl.class).setLinearVelocity(cam.getDirection().mult(40));
148 rootNode.attachChild(bulletg);
149 getPhysicsSpace().add(bulletg);