|
|
@ -147,13 +147,13 @@ public class TestHoveringTank extends SimpleApplication implements AnalogListene |
|
|
|
spaceCraft.setLocalRotation(new Quaternion(new float[]{0, 0.01f, 0})); |
|
|
|
spaceCraft.setLocalRotation(new Quaternion(new float[]{0, 0.01f, 0})); |
|
|
|
|
|
|
|
|
|
|
|
hoverControl = new PhysicsHoverControl(colShape, 500); |
|
|
|
hoverControl = new PhysicsHoverControl(colShape, 500); |
|
|
|
hoverControl.setCollisionGroup(PhysicsCollisionObject.COLLISION_GROUP_02); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaceCraft.addControl(hoverControl); |
|
|
|
spaceCraft.addControl(hoverControl); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rootNode.attachChild(spaceCraft); |
|
|
|
rootNode.attachChild(spaceCraft); |
|
|
|
getPhysicsSpace().add(hoverControl); |
|
|
|
getPhysicsSpace().add(hoverControl); |
|
|
|
|
|
|
|
hoverControl.setCollisionGroup(PhysicsCollisionObject.COLLISION_GROUP_02); |
|
|
|
|
|
|
|
|
|
|
|
ChaseCamera chaseCam = new ChaseCamera(cam, inputManager); |
|
|
|
ChaseCamera chaseCam = new ChaseCamera(cam, inputManager); |
|
|
|
spaceCraft.addControl(chaseCam); |
|
|
|
spaceCraft.addControl(chaseCam); |
|
|
|