Tile - YVector3 - Reflect – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Reflect(Direction, Plane normal)

YlandsTile-1375.png

static reflect(direction: YVector3, planeNormal: YVector3): YVector3;

Parameters

direction

planeNormal

Returns

YVector3

Availability

Client, Server, Custom Controller

Description

Returns a reflected direction vector from the plane specified by its normal vector.

Notes

  • The returned vector is of equal magnitude to the incoming direction vector, but with its direction reflected.