Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.trace.intersectRayWithPlane

S๐Ÿท๏ธ Trace

Part of StarfallEx namespace

๐Ÿ”— External
trace.intersectRayWithPlane(rayStart, rayDelta, planeOrigin, planeNormal)
View on GitHub|lua/starfall/libs_sh/trace.lua:156
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Does a ray plane intersection returning the position hit or nil if not hit

Parameters

NameTypeDescription
rayStartVectorThe origin of the ray
rayDeltaVectorThe direction and length of the ray
planeOriginVectorThe origin of the plane
planeNormalVectorThe normal of the plane

Returns

TypeDescription
VectorHit position or nil if not hit

Examples

No examples available.

Used In

No usages found in the codebase.