Tile - YPhysics - Raycast Plane – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(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...")
 
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
Line 36: Line 36:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

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