mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
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.
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user