Transform.InverseTransformPoint(Vector3 position)
Transforms position from world space to local space.
Parameters:
Name | Type | Description |
---|---|---|
position | Vector3 | position |
Returns:
type | Description |
---|---|
Vector3 | local space. |
Usage
---@type Transform
local transform;
---@type Vector3
local position;
local val0 = transform.InverseTransformPoint(position)