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