Porting the ScenePresenceAnimator from Avination. Jump and fall anims now work

properly.
This commit is contained in:
Melanie
2011-11-05 22:41:00 +00:00
parent ac3254a5f5
commit 71388fc02a
2 changed files with 141 additions and 92 deletions

View File

@@ -2420,7 +2420,11 @@ namespace OpenSim.Region.Framework.Scenes
// m_log.Info("[AGENT]: Stop Flying");
//}
}
if (!PhysicsActor.Flying && PhysicsActor.IsColliding)
if (Animator.Falling && m_wasFlying) // if falling from flying, disable motion add
{
direc *= 0.0f;
}
else if (!PhysicsActor.Flying && PhysicsActor.IsColliding)
{
if (direc.Z > 2.0f)
{