Browse Source

- fix PhysicsHoverControl

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10335 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 12 years ago
parent
commit
7000a19a04
1 changed files with 1 additions and 10 deletions
  1. 1 10
      engine/src/test/jme3test/bullet/PhysicsHoverControl.java

+ 1 - 10
engine/src/test/jme3test/bullet/PhysicsHoverControl.java

@@ -176,16 +176,6 @@ public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro
     }
 
     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) {
@@ -237,4 +227,5 @@ public class PhysicsHoverControl extends PhysicsVehicle implements PhysicsContro
     public void accelerate(float accelerationValue) {
         this.accelerationValue = accelerationValue * getMass();
     }
+
 }