Fix Av jump motion S/W

avinationmerge
Kitto Flora 2010-04-29 19:41:08 -04:00
parent 5c23b4aa56
commit f3c21524be
1 changed files with 2 additions and 2 deletions

View File

@ -1025,11 +1025,11 @@ namespace OpenSim.Region.Physics.OdePlugin
// m_iscolliding includes collisions with the ground. // m_iscolliding includes collisions with the ground.
// d.Vector3 pos = d.BodyGetPosition(Body); // d.Vector3 pos = d.BodyGetPosition(Body);
if (_target_velocity.X > 0) if (Math.Abs(_target_velocity.X) > 0)
{ {
vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D; vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D;
} }
if (_target_velocity.Y > 0) if (Math.Abs(_target_velocity.Y) > 0)
{ {
vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D; vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D;
} }