OpenSim.Region.Framework.Scenes.Scene.GetPositionAtAvatarHeightOrGroundHeight C# (CSharp) Method

GetPositionAtAvatarHeightOrGroundHeight() private method

private GetPositionAtAvatarHeightOrGroundHeight ( ScenePresence avatar, float x, float y ) : Vector3
avatar ScenePresence
x float
y float
return Vector3
        private Vector3 GetPositionAtAvatarHeightOrGroundHeight(ScenePresence avatar, float x, float y)
        {
            Vector3 ground = GetPositionAtGround(x, y);
            if (avatar.AbsolutePosition.Z > ground.Z)
            {
                ground.Z = avatar.AbsolutePosition.Z;
            }
            return ground;
        }
Scene