diff options
author | Diva Canto | 2013-05-06 09:18:17 -0700 |
---|---|---|
committer | Diva Canto | 2013-05-06 09:18:17 -0700 |
commit | a81ddf3d7097a2e0959080ae7291357435b0bd5b (patch) | |
tree | 688ceb63aa41d8eb9d3af27bd57d39cbd38ca250 /OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | |
parent | Minor reordering of operations on NewUserConnection. The agent circuit needs ... (diff) | |
parent | Merge branch 'master' into bulletsim4 (diff) | |
download | opensim-SC_OLD-a81ddf3d7097a2e0959080ae7291357435b0bd5b.zip opensim-SC_OLD-a81ddf3d7097a2e0959080ae7291357435b0bd5b.tar.gz opensim-SC_OLD-a81ddf3d7097a2e0959080ae7291357435b0bd5b.tar.bz2 opensim-SC_OLD-a81ddf3d7097a2e0959080ae7291357435b0bd5b.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs index 9501e2d..0128d8d 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | |||
@@ -102,7 +102,7 @@ public class BSVMotor : BSMotor | |||
102 | return ErrorIsZero(LastError); | 102 | return ErrorIsZero(LastError); |
103 | } | 103 | } |
104 | public virtual bool ErrorIsZero(Vector3 err) | 104 | public virtual bool ErrorIsZero(Vector3 err) |
105 | { | 105 | { |
106 | return (err == Vector3.Zero || err.ApproxEquals(Vector3.Zero, ErrorZeroThreshold)); | 106 | return (err == Vector3.Zero || err.ApproxEquals(Vector3.Zero, ErrorZeroThreshold)); |
107 | } | 107 | } |
108 | 108 | ||
@@ -115,7 +115,7 @@ public class BSVMotor : BSMotor | |||
115 | CurrentValue = TargetValue = Vector3.Zero; | 115 | CurrentValue = TargetValue = Vector3.Zero; |
116 | ErrorZeroThreshold = 0.001f; | 116 | ErrorZeroThreshold = 0.001f; |
117 | } | 117 | } |
118 | public BSVMotor(string useName, float timeScale, float decayTimeScale, Vector3 frictionTimeScale, float efficiency) | 118 | public BSVMotor(string useName, float timeScale, float decayTimeScale, Vector3 frictionTimeScale, float efficiency) |
119 | : this(useName) | 119 | : this(useName) |
120 | { | 120 | { |
121 | TimeScale = timeScale; | 121 | TimeScale = timeScale; |
@@ -237,7 +237,7 @@ public class BSVMotor : BSMotor | |||
237 | MDetailLog("{0},BSVMotor.Test,{1},===================================== BEGIN Test Output", BSScene.DetailLogZero, UseName); | 237 | MDetailLog("{0},BSVMotor.Test,{1},===================================== BEGIN Test Output", BSScene.DetailLogZero, UseName); |
238 | MDetailLog("{0},BSVMotor.Test,{1},timeScale={2},targDlyTS={3},frictTS={4},eff={5},curr={6},tgt={7}", | 238 | MDetailLog("{0},BSVMotor.Test,{1},timeScale={2},targDlyTS={3},frictTS={4},eff={5},curr={6},tgt={7}", |
239 | BSScene.DetailLogZero, UseName, | 239 | BSScene.DetailLogZero, UseName, |
240 | TimeScale, TargetValueDecayTimeScale, FrictionTimescale, Efficiency, | 240 | TimeScale, TargetValueDecayTimeScale, FrictionTimescale, Efficiency, |
241 | CurrentValue, TargetValue); | 241 | CurrentValue, TargetValue); |
242 | 242 | ||
243 | LastError = BSMotor.InfiniteVector; | 243 | LastError = BSMotor.InfiniteVector; |
@@ -248,7 +248,7 @@ public class BSVMotor : BSMotor | |||
248 | BSScene.DetailLogZero, UseName, CurrentValue, TargetValue, LastError, lastStep); | 248 | BSScene.DetailLogZero, UseName, CurrentValue, TargetValue, LastError, lastStep); |
249 | } | 249 | } |
250 | MDetailLog("{0},BSVMotor.Test,{1},===================================== END Test Output", BSScene.DetailLogZero, UseName); | 250 | MDetailLog("{0},BSVMotor.Test,{1},===================================== END Test Output", BSScene.DetailLogZero, UseName); |
251 | 251 | ||
252 | 252 | ||
253 | } | 253 | } |
254 | 254 | ||
@@ -279,7 +279,7 @@ public class BSFMotor : BSMotor | |||
279 | return ErrorIsZero(LastError); | 279 | return ErrorIsZero(LastError); |
280 | } | 280 | } |
281 | public virtual bool ErrorIsZero(float err) | 281 | public virtual bool ErrorIsZero(float err) |
282 | { | 282 | { |
283 | return (err >= -ErrorZeroThreshold && err <= ErrorZeroThreshold); | 283 | return (err >= -ErrorZeroThreshold && err <= ErrorZeroThreshold); |
284 | } | 284 | } |
285 | 285 | ||
@@ -410,7 +410,7 @@ public class BSPIDVMotor : BSVMotor | |||
410 | // The factors are vectors for the three dimensions. This is the proportional of each | 410 | // The factors are vectors for the three dimensions. This is the proportional of each |
411 | // that is applied. This could be multiplied through the actual factors but it | 411 | // that is applied. This could be multiplied through the actual factors but it |
412 | // is sometimes easier to manipulate the factors and their mix separately. | 412 | // is sometimes easier to manipulate the factors and their mix separately. |
413 | // to | 413 | // to |
414 | public Vector3 FactorMix; | 414 | public Vector3 FactorMix; |
415 | 415 | ||
416 | // Arbritrary factor range. | 416 | // Arbritrary factor range. |