Tile - YPhysics - Raycast Plane – Ylands

From Bohemia Interactive Community
Revision as of 16:47, 1 December 2022 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Raycast Plane(Plane normal, Plane point, Ray orig...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Raycast Plane(Plane normal, Plane point, Ray origin, Ray direction, On hit, On missed)

YlandsTile-1433.png

static raycastPlane(planeNormal: YVector3, planePoint: YVector3, rayOrigin: YVector3, rayDirection: YVector3, onHit: (point: YVector3) => void, onMissed: () => void): void;

Parameters

planeNormal

planePoint

rayOrigin

rayDirection

onHit

onMissed

Availability

Client, Server, Custom Controller

Description

Casts a ray, from origin point, in a direction, of a maximal length, against a plane constructed at the given point using the given normal. If the ray intersects this plane, exact point of intersection is returned

Notes