Transform.InverseTransformDirection(Vector3 direction)
Transforms a direction from world space to local space. The opposite of Transform.TransformDirection.
Parameters:
Name | Type | Description |
---|---|---|
direction | Vector3 | direction |
Returns:
type | Description |
---|---|
Vector3 | local space |
Usage
---@type Transform
local transform;
---@type Vector3
local direction;
local val0 = transform.InverseTransformDirection(direction)