Gesture.Positions.GetTranslationInLocalSpace
GetTranslationInLocalSpace(Transform, Vector3, Vector3)
The delta between from and to in the local space of the provided transform.
Declaration
public static Vector3 GetTranslationInLocalSpace(Transform transform, Vector3 from, Vector3 to)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | transform | Defines the local space. |
| Vector3 | from | The start position in world space. |
| Vector3 | to | The end position in world space. |
Returns
| Type | Description |
|---|---|
| Vector3 | The delta between |