Esempio n. 1
0
        public bool CheckForValidation(DrawableTauHitObject h)
        {
            switch (h)
            {
            case DrawableBeat beat:
                return(beat.IntersectArea.ScreenSpaceDrawQuad.AABBFloat.IntersectsWith(defaultCursor.HitReceptor.ScreenSpaceDrawQuad.AABBFloat));

            default:
                return(true);
            }
        }
Esempio n. 2
0
        public bool CheckForValidation(DrawableTauHitObject h)
        {
            switch (h)
            {
            case DrawableBeat beat:
                var angleDiff = Extensions.GetDeltaAngle(paddle.Rotation, beat.HitObject.Angle);

                return(Math.Abs(angleDiff) <= angleRange / 2);

            default:
                return(true);
            }
        }
Esempio n. 3
0
 public bool CheckIfWeCanValidate(DrawableTauHitObject obj) => cursor.CheckForValidation(obj);