diff options
author | Robert Adams | 2012-11-29 22:21:45 -0800 |
---|---|---|
committer | Robert Adams | 2012-11-29 22:21:45 -0800 |
commit | ec63e4ff29f9983b65d76232018156605762ccc0 (patch) | |
tree | b7bbe2b1fe10f05421ebb72c3f3302329bcde6ad /OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | |
parent | BulletSim: add copyright header where it is missing. Remove some unnecessary ... (diff) | |
download | opensim-SC_OLD-ec63e4ff29f9983b65d76232018156605762ccc0.zip opensim-SC_OLD-ec63e4ff29f9983b65d76232018156605762ccc0.tar.gz opensim-SC_OLD-ec63e4ff29f9983b65d76232018156605762ccc0.tar.bz2 opensim-SC_OLD-ec63e4ff29f9983b65d76232018156605762ccc0.tar.xz |
BulletSim: remove time scaling of computed vehicle absolute velocity since Bullet will scale the movement by the time slice. Restore LIMIT_MOTOR_UP to definitition of BOAT simce some vehicle engines use it even for land vehicles. Push vehicle parameter updates through the regular property update to solve vehicles floating off when they should be stopped.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs index eca1452..b256887 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | |||
@@ -101,6 +101,14 @@ public class BSVMotor : BSMotor | |||
101 | { | 101 | { |
102 | TargetValue = target; | 102 | TargetValue = target; |
103 | } | 103 | } |
104 | |||
105 | // A form of stepping that does not take the time quantum into account. | ||
106 | // The caller must do the right thing later. | ||
107 | public Vector3 Step() | ||
108 | { | ||
109 | return Step(1f); | ||
110 | } | ||
111 | |||
104 | public Vector3 Step(float timeStep) | 112 | public Vector3 Step(float timeStep) |
105 | { | 113 | { |
106 | Vector3 returnCurrent = Vector3.Zero; | 114 | Vector3 returnCurrent = Vector3.Zero; |