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; }