Skip to main content
Show raw api
{
    "functions": [
        {
            "name": "rayIntersection",
            "desc": "Finds the intersection between planes and rays.\n\nhttps://wiki.roblox.com/index.php?title=User:EgoMoose/Articles/Silhouettes_and_shadows#Ray_plane_intersection\nOriginally from EgoMoose",
            "params": [
                {
                    "name": "origin",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "normal",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "rayOrigin",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "unitRayDirection",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [
                {
                    "desc": "Intersection point",
                    "lua_type": "Vector3?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 20,
                "path": "src/geometryutils/src/Shared/PlaneUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PlaneUtils",
    "desc": "Utility functions involving planes!",
    "source": {
        "line": 5,
        "path": "src/geometryutils/src/Shared/PlaneUtils.lua"
    }
}