aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODECharacter.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODECharacter.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
index a6acdeb..6b8d0e2 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs
@@ -508,7 +508,12 @@ namespace OpenSim.Region.Physics.OdePlugin
508 508
509 public override PhysicsVector Velocity 509 public override PhysicsVector Velocity
510 { 510 {
511 get { return _velocity; } 511 get {
512 if (_zeroFlag)
513 return PhysicsVector.Zero;
514 m_lastUpdateSent = false;
515 return _velocity;
516 }
512 set 517 set
513 { 518 {
514 m_pidControllerActive = true; 519 m_pidControllerActive = true;
@@ -612,7 +617,7 @@ namespace OpenSim.Region.Physics.OdePlugin
612 _zeroPosition = d.BodyGetPosition(Body); 617 _zeroPosition = d.BodyGetPosition(Body);
613 } 618 }
614 //PidStatus = true; 619 //PidStatus = true;
615 620
616 PhysicsVector vec = new PhysicsVector(); 621 PhysicsVector vec = new PhysicsVector();
617 d.Vector3 vel = d.BodyGetLinearVel(Body); 622 d.Vector3 vel = d.BodyGetLinearVel(Body);
618 float movementdivisor = 1f; 623 float movementdivisor = 1f;