SDK
hopefully fixed build git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7363 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
f6757c73fc
commit
0012e955d2
@ -214,7 +214,7 @@ public class VehicleEditorController implements LookupListener, ActionListener {
|
|||||||
vehicleControl.setLinearVelocity(Vector3f.ZERO);
|
vehicleControl.setLinearVelocity(Vector3f.ZERO);
|
||||||
vehicleControl.setAngularVelocity(Vector3f.ZERO);
|
vehicleControl.setAngularVelocity(Vector3f.ZERO);
|
||||||
vehicleControl.resetSuspension();
|
vehicleControl.resetSuspension();
|
||||||
vehicleControl.attachDebugShape(SceneApplication.getApplication().getAssetManager());
|
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
|
||||||
bulletState.getPhysicsSpace().removeAll(toolsNode);
|
bulletState.getPhysicsSpace().removeAll(toolsNode);
|
||||||
bulletState.getPhysicsSpace().remove(vehicleControl);
|
bulletState.getPhysicsSpace().remove(vehicleControl);
|
||||||
// chaseCam.setEnabled(false);
|
// chaseCam.setEnabled(false);
|
||||||
@ -380,12 +380,12 @@ public class VehicleEditorController implements LookupListener, ActionListener {
|
|||||||
VehicleControl control = rootNode.getControl(VehicleControl.class);
|
VehicleControl control = rootNode.getControl(VehicleControl.class);
|
||||||
if (control == null) {
|
if (control == null) {
|
||||||
vehicleControl = new VehicleControl(new BoxCollisionShape(Vector3f.UNIT_XYZ), 200);
|
vehicleControl = new VehicleControl(new BoxCollisionShape(Vector3f.UNIT_XYZ), 200);
|
||||||
vehicleControl.attachDebugShape(SceneApplication.getApplication().getAssetManager());
|
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
|
||||||
rootNode.addControl(vehicleControl);
|
rootNode.addControl(vehicleControl);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
vehicleControl = control;
|
vehicleControl = control;
|
||||||
vehicleControl.attachDebugShape(SceneApplication.getApplication().getAssetManager());
|
vehicleControl.createDebugShape(SceneApplication.getApplication().getAssetManager());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user