FREE TRIAL

|

☀
☾

Gesture.Positions.GetMaskedTranslationWorldSpace

GetMaskedTranslationWorldSpace(Transform, Vector3, Vector3, ThreeD<bool>)

The delta between from and to in world space, constrained to the axisMask local axes of the provided transform.

Declaration
public static Vector3 GetMaskedTranslationWorldSpace(Transform transform, Vector3 from, Vector3 to, ThreeD<bool> axisMask)
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.

ThreeD<bool> axisMask

The local space axes.
If axisMask[axis] is true, the local translation along that axis is preserved.
If axisMask[axis] is false, the local translation along that axis is zeroed out.

Returns
Type Description
Vector3

The delta between from and to in transform local space.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC