From d8a6971a35c0c27b50ec66dbbdee5d876e04ac3a Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Tue, 28 Oct 2008 14:57:31 +0000 Subject: Thank you kindly, Mircea Kitsune for a patch that solves: When the avatar stops flying in mid air, it stays still while it falls to the ground. Normally, the avatar would use the falling animation (when it spins its arms and legs while falling) until it reaches the ground. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 38427cf..3313524 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -1521,7 +1521,7 @@ namespace OpenSim.Region.Environment.Scenes return "CROUCH"; } } - else if (PhysicsActor != null && !PhysicsActor.IsColliding && PhysicsActor.Velocity.Z < -6) + else if (PhysicsActor != null && !PhysicsActor.IsColliding && PhysicsActor.Velocity.Z < -2) { return "FALLDOWN"; } @@ -1542,7 +1542,7 @@ namespace OpenSim.Region.Environment.Scenes else { // We are not moving - if (PhysicsActor != null && !PhysicsActor.IsColliding && PhysicsActor.Velocity.Z < -6 && !PhysicsActor.Flying) + if (PhysicsActor != null && !PhysicsActor.IsColliding && PhysicsActor.Velocity.Z < -2 && !PhysicsActor.Flying) { return "FALLDOWN"; } -- cgit v1.1