aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
diff options
context:
space:
mode:
authorMelanie2013-01-06 10:52:16 +0000
committerMelanie2013-01-06 10:52:16 +0000
commit40955fee2a2e15566734139411b9ebb13570513c (patch)
treed702441c8d7f49274cbfdd7f6d7252c6786eaed2 /OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
parentMerge branch 'master' into careminster (diff)
parentBulletSim: fix problem where mesh shapes were physically just their bounding ... (diff)
downloadopensim-SC-40955fee2a2e15566734139411b9ebb13570513c.zip
opensim-SC-40955fee2a2e15566734139411b9ebb13570513c.tar.gz
opensim-SC-40955fee2a2e15566734139411b9ebb13570513c.tar.bz2
opensim-SC-40955fee2a2e15566734139411b9ebb13570513c.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
index 103d8fc..c215e3a 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSCharacter.cs
@@ -214,7 +214,7 @@ public sealed class BSCharacter : BSPhysObject
214 } 214 }
215 215
216 // 'stepVelocity' is now the speed we'd like the avatar to move in. Turn that into an instantanous force. 216 // 'stepVelocity' is now the speed we'd like the avatar to move in. Turn that into an instantanous force.
217 OMV.Vector3 moveForce = (stepVelocity - _velocity) * Mass / PhysicsScene.LastTimeStep; 217 OMV.Vector3 moveForce = (stepVelocity - _velocity) * Mass;
218 218
219 /* 219 /*
220 // If moveForce is very small, zero things so we don't keep sending microscopic updates to the user 220 // If moveForce is very small, zero things so we don't keep sending microscopic updates to the user
@@ -231,7 +231,7 @@ public sealed class BSCharacter : BSPhysObject
231 } 231 }
232 */ 232 */
233 // DetailLog("{0},BSCharacter.MoveMotor,move,stepVel={1},vel={2},mass={3},moveForce={4}", LocalID, stepVelocity, _velocity, Mass, moveForce); 233 // DetailLog("{0},BSCharacter.MoveMotor,move,stepVel={1},vel={2},mass={3},moveForce={4}", LocalID, stepVelocity, _velocity, Mass, moveForce);
234 AddForce(moveForce, false, true); 234 PhysicsScene.PE.ApplyCentralImpulse(PhysBody, moveForce);
235 }); 235 });
236 } 236 }
237 237