GameFramework.User.VerifyPosition C# (CSharp) Method

VerifyPosition() private method

private VerifyPosition ( float x, float z, float velocity, float maxEnabledNomovingDistSqr ) : bool
x float
z float
velocity float
maxEnabledNomovingDistSqr float
return bool
        internal bool VerifyPosition(float x, float z, float velocity, float maxEnabledNomovingDistSqr)
        {
            bool ret = true;
            float ox = x;
            float oz = z;
            if (LastIsMoving) {
                if (!VerifyMovingPosition(x, z, velocity)) {
                    ret = false;
                }
            } else {
                if (!VerifyNotMovingPosition(x, z, maxEnabledNomovingDistSqr)) {
                    ret = false;
                }
            }
            return ret;
        }