|
|
@ -200,6 +200,7 @@ public class VehicleControl extends PhysicsVehicle implements PhysicsControl, Jm |
|
|
|
newWheel.setWheelSpatial(wheel.getWheelSpatial()); |
|
|
|
newWheel.setWheelSpatial(wheel.getWheelSpatial()); |
|
|
|
} |
|
|
|
} |
|
|
|
control.setApplyPhysicsLocal(isApplyPhysicsLocal()); |
|
|
|
control.setApplyPhysicsLocal(isApplyPhysicsLocal()); |
|
|
|
|
|
|
|
control.setEnabled(isEnabled()); |
|
|
|
|
|
|
|
|
|
|
|
control.spatial = spatial; |
|
|
|
control.spatial = spatial; |
|
|
|
return control; |
|
|
|
return control; |
|
|
@ -268,9 +269,12 @@ public class VehicleControl extends PhysicsVehicle implements PhysicsControl, Jm |
|
|
|
added = false; |
|
|
|
added = false; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if(this.space==space) return; |
|
|
|
if(this.space == space) return; |
|
|
|
space.addCollisionObject(this); |
|
|
|
// if this object isn't enabled, it will be added when it will be enabled.
|
|
|
|
added = true; |
|
|
|
if (isEnabled()) { |
|
|
|
|
|
|
|
space.addCollisionObject(this); |
|
|
|
|
|
|
|
added = true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.space = space; |
|
|
|
this.space = space; |
|
|
|
} |
|
|
|
} |
|
|
|