* Fix incorrect math on the Velocity check in PhysicsCollisionUpdate. This may reduce avatar flailing.

0.6.7-post-fixes
Teravus Ovares (Dan Olivares) 2009-10-10 01:49:06 -04:00 committed by Justin Clark-Casey (justincc)
parent 4e678d3d16
commit a9da2786cf
1 changed files with 8 additions and 1 deletions

View File

@ -3390,8 +3390,15 @@ namespace OpenSim.Region.Framework.Scenes
// Event called by the physics plugin to tell the avatar about a collision.
private void PhysicsCollisionUpdate(EventArgs e)
{
if ((e == null) || m_invulnerable)
if (e == null)
return;
if ((Math.Abs(Velocity.X) > 0.05f) || (Math.Abs(Velocity.Y) > 0.05f))
UpdateMovementAnimations();
if (m_invulnerable)
return;
CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
Dictionary<uint, float> coldata = collisionData.m_objCollisionList;
float starthealth = Health;