- remove calls to createDebugShape from vehicle editor

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10336 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-02-05 14:44:32 +00:00
parent 7000a19a04
commit 68b82ad4ee

View File

@ -210,7 +210,7 @@ public class VehicleEditorController implements LookupListener, ActionListener {
vehicleControl.setLinearVelocity(Vector3f.ZERO);
vehicleControl.setAngularVelocity(Vector3f.ZERO);
vehicleControl.resetSuspension();
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
// vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
bulletState.getPhysicsSpace().removeAll(toolsNode);
bulletState.getPhysicsSpace().remove(vehicleControl);
// chaseCam.setEnabled(false);
@ -376,12 +376,12 @@ public class VehicleEditorController implements LookupListener, ActionListener {
VehicleControl control = rootNode.getControl(VehicleControl.class);
if (control == null) {
vehicleControl = new VehicleControl(new BoxCollisionShape(Vector3f.UNIT_XYZ), 200);
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
// vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
rootNode.addControl(vehicleControl);
return true;
} else {
vehicleControl = control;
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
// vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
return false;
}
}