mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Cleaned up ScenePresence parameters for Flying, WasFlying, FlyingOld and IsColliding
This commit is contained in:
@@ -5573,9 +5573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// note: this may need some tweaking when walking downhill. you "fall down" for a brief instant
|
||||
// and don't collide when walking downhill, which instantly registers as in-air, briefly. should
|
||||
// there be some minimum non-collision threshold time before claiming the avatar is in-air?
|
||||
if ((flags & ScriptBaseClass.AGENT_WALKING) == 0 &&
|
||||
agent.PhysicsActor != null &&
|
||||
!agent.PhysicsActor.IsColliding)
|
||||
if ((flags & ScriptBaseClass.AGENT_WALKING) == 0 && !agent.IsColliding )
|
||||
{
|
||||
flags |= ScriptBaseClass.AGENT_IN_AIR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user