Revert "Revert "BulletSim: only create vehicle prim actor when vehicles are enabled.""

Found that the vehicle movement problem was not caused by these physics changes.

This reverts commit 5f7b2ea81b.
This commit is contained in:
Robert Adams
2013-07-23 08:13:29 -07:00
parent aec8852af7
commit b14156aa63
2 changed files with 33 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ public class BasicVehicles : OpenSimTestCase
// Instead the appropriate values are set and calls are made just the parts of the
// controller we want to exercise. Stepping the physics engine then applies
// the actions of that one feature.
BSDynamics vehicleActor = TestVehicle.GetVehicleActor();
BSDynamics vehicleActor = TestVehicle.GetVehicleActor(true /* createIfNone */);
if (vehicleActor != null)
{
vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_EFFICIENCY, efficiency);