ubOde bug fix
parent
c3b298f85e
commit
f661fdf2aa
|
@ -546,6 +546,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
|||
{
|
||||
get
|
||||
{
|
||||
if (_parent != null)
|
||||
return ((OdePrim)_parent).Velocity;
|
||||
|
||||
if (_zeroFlag)
|
||||
return Vector3.Zero;
|
||||
return _velocity;
|
||||
|
@ -560,7 +563,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
|||
{
|
||||
m_log.WarnFormat("[PHYSICS]: Got NaN Velocity in Object {0}", Name);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -995,7 +995,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
|||
p1.CollidingObj = true;
|
||||
p2.CollidingObj = true;
|
||||
}
|
||||
else if (p2.Velocity.LengthSquared() > 0.0f)
|
||||
else if (p1.Velocity.LengthSquared() > 0.0f)
|
||||
p1.CollidingObj = true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue