Lines Matching refs:Vector3f
70 private Vector3f jumpForce = new Vector3f(0, 3000, 0);
115 Box floor = new Box(Vector3f.ZERO, 100, 1f, 100);
118 floorGeom.setLocalTranslation(new Vector3f(0f, -3, 0f));
133 BoxCollisionShape box = new BoxCollisionShape(new Vector3f(1.2f, 0.5f, 2.4f));
134 compoundShape.addChildShape(box, new Vector3f(0, 1, 0));
152 Vector3f wheelDirection = new Vector3f(0, -1, 0); // was 0, -1, 0
153 Vector3f wheelAxle = new Vector3f(-1, 0, 0); // was -1, 0, 0
167 vehicle.addWheel(node1, new Vector3f(-xOff, yOff, zOff),
175 vehicle.addWheel(node2, new Vector3f(xOff, yOff, zOff),
183 vehicle.addWheel(node3, new Vector3f(-xOff, yOff, -zOff),
191 vehicle.addWheel(node4, new Vector3f(xOff, yOff, -zOff),
205 driver=new RigidBodyControl(new BoxCollisionShape(new Vector3f(0.2f,.5f,0.2f)));
212 slider=new SliderJoint(driver, vehicle, Vector3f.UNIT_Y.negate(), Vector3f.UNIT_Y, true);
221 pole1Node.setLocalTranslation(new Vector3f(-2,-1,4));
222 pole2Node.setLocalTranslation(new Vector3f(2,-1,4));
223 bridgeNode.setLocalTranslation(new Vector3f(0,1.4f,4));
225 RigidBodyControl pole1=new RigidBodyControl(new BoxCollisionShape(new Vector3f(0.2f,1.25f,0.2f)),0);
227 RigidBodyControl pole2=new RigidBodyControl(new BoxCollisionShape(new Vector3f(0.2f,1.25f,0.2f)),0);
229 bridge=new RigidBodyControl(new BoxCollisionShape(new Vector3f(2.5f,0.2f,0.2f)));
244 cam.lookAt(vehicle.getPhysicsLocation(), Vector3f.UNIT_Y);
279 vehicle.applyImpulse(jumpForce, Vector3f.ZERO);
284 vehicle.setPhysicsLocation(new Vector3f(0, 0, 0));
286 vehicle.setLinearVelocity(Vector3f.ZERO);
287 vehicle.setAngularVelocity(Vector3f.ZERO);
289 bridge.setPhysicsLocation(new Vector3f(0,1.4f,4));