Get Aim Ray Plane Intersection Gates
These let you check where on a plane/surface a player clicked. I made this so I could have many buttons on something without needing a brick for each button, but it's probably useful for other stuff too. ...I also made it because I forgot the sweep/raycast gate exists. (though this has the advantage that you can check collision against an imaginary surface that doesn't have a colliding brick there) Making one gate for all 3 directions was too hard, so I made 3 gates. The blue XY one is for top/bottom surfaces, and the other two are for side surfaces. You may need to trial & error. None of them do wedges. Inputs: Exec Player Height of Surface From Object Center Outputs: Exec Out Intersection Point (World Space) Intersection Point (Local Space)
- Published
- July 20, 2026 at UTC
- Updated
- July 20, 2026 at UTC
- Version
- 1
- Share code
48u-385-e9p