* Fix incorrect math on the Velocity check in PhysicsCollisionUpdate. This may reduce avatar flailing.
parent
4e678d3d16
commit
a9da2786cf
|
@ -3390,8 +3390,15 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// Event called by the physics plugin to tell the avatar about a collision.
|
// Event called by the physics plugin to tell the avatar about a collision.
|
||||||
private void PhysicsCollisionUpdate(EventArgs e)
|
private void PhysicsCollisionUpdate(EventArgs e)
|
||||||
{
|
{
|
||||||
if ((e == null) || m_invulnerable)
|
if (e == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ((Math.Abs(Velocity.X) > 0.05f) || (Math.Abs(Velocity.Y) > 0.05f))
|
||||||
|
UpdateMovementAnimations();
|
||||||
|
|
||||||
|
if (m_invulnerable)
|
||||||
|
return;
|
||||||
|
|
||||||
CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
|
CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
|
||||||
Dictionary<uint, float> coldata = collisionData.m_objCollisionList;
|
Dictionary<uint, float> coldata = collisionData.m_objCollisionList;
|
||||||
float starthealth = Health;
|
float starthealth = Health;
|
||||||
|
|
Loading…
Reference in New Issue