Skip to main content

Transform.InverseTransformDirection(Vector3 direction)

Transforms a direction from world space to local space. The opposite of Transform.TransformDirection.

Parameters:

NameTypeDescription
directionVector3direction

Returns:

typeDescription
Vector3local space

Usage

---@type Transform
local transform;

---@type Vector3
local direction;


local val0 = transform.InverseTransformDirection(direction)