|
@@ -176,16 +176,6 @@ public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro
|
|
}
|
|
}
|
|
|
|
|
|
public void render(RenderManager rm, ViewPort vp) {
|
|
public void render(RenderManager rm, ViewPort vp) {
|
|
- if (enabled && space != null && space.getDebugManager() != null) {
|
|
|
|
- if (debugShape == null) {
|
|
|
|
- attachDebugShape(space.getDebugManager());
|
|
|
|
- }
|
|
|
|
- debugShape.setLocalTranslation(motionState.getWorldLocation());
|
|
|
|
- debugShape.setLocalRotation(motionState.getWorldRotation());
|
|
|
|
- debugShape.updateLogicalState(0);
|
|
|
|
- debugShape.updateGeometricState();
|
|
|
|
- rm.renderScene(debugShape, vp);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public void setPhysicsSpace(PhysicsSpace space) {
|
|
public void setPhysicsSpace(PhysicsSpace space) {
|
|
@@ -237,4 +227,5 @@ public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro
|
|
public void accelerate(float accelerationValue) {
|
|
public void accelerate(float accelerationValue) {
|
|
this.accelerationValue = accelerationValue * getMass();
|
|
this.accelerationValue = accelerationValue * getMass();
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|