A test for Ray-Disc intersection: Slide Bar (Normal,x), (Normal,y), (Normal.z) E key : End Space Bar : Reset Use TurboWarp for faster response https://turbowarp.org/
Disc Center: Q Disc Radius: r Normal: N (1) Plane determined by Point(Q)-Normal(N) Ray P = P0 + t*P1 Plane N・(P - Q) = 0 [N・(Po + t*P1 -Q)] = 0 Solution t = [N・(Q - P0)] / (P1・N) (p1・N) = 0 ray is parallel to the plane. if t<0 the plane is behind the eye point (2) Check intersection point lies inside the disc. (P-Q)・(P-Q) < r^2 or =r^2