diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs index 68eec2d..480da2c 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSMotors.cs | |||
@@ -75,7 +75,7 @@ public class BSVMotor : BSMotor | |||
75 | Vector3 origTarget = TargetValue; // DEBUG | 75 | Vector3 origTarget = TargetValue; // DEBUG |
76 | Vector3 origCurrVal = CurrentValue; // DEBUG | 76 | Vector3 origCurrVal = CurrentValue; // DEBUG |
77 | 77 | ||
78 | // Add (desiredVector - currentAppliedVector) / howLongItShouldTakeToComplete | 78 | // Addition = (desiredVector - currentAppliedVector) / secondsItShouldTakeToComplete |
79 | Vector3 addAmount = (TargetValue - CurrentValue)/TimeScale * timeStep; | 79 | Vector3 addAmount = (TargetValue - CurrentValue)/TimeScale * timeStep; |
80 | CurrentValue += addAmount; | 80 | CurrentValue += addAmount; |
81 | returnCurrent = CurrentValue; | 81 | returnCurrent = CurrentValue; |
@@ -109,6 +109,11 @@ public class BSVMotor : BSMotor | |||
109 | } | 109 | } |
110 | return returnCurrent; | 110 | return returnCurrent; |
111 | } | 111 | } |
112 | public override string ToString() | ||
113 | { | ||
114 | return String.Format("<{0},curr={1},targ={2},decayTS={3},frictTS={4}>", | ||
115 | UseName, CurrentValue, TargetValue, TargetValueDecayTimeScale, FrictionTimescale); | ||
116 | } | ||
112 | } | 117 | } |
113 | 118 | ||
114 | public class BSFMotor : BSMotor | 119 | public class BSFMotor : BSMotor |