mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 09:25:45 +08:00
Porting the ScenePresenceAnimator from Avination. Jump and fall anims now work
properly.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user