mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
ubOde bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user