mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user