Solver.SnapTo Method

Definition

Overloads

SnapTo(Vector3, Quaternion)
Obsolete.

Snaps the solver to the desired pose.

SnapTo(Vector3, Quaternion, Vector3)

Snaps the solver to the desired pose.

SnapTo(Vector3, Quaternion)

Caution

Use SnapTo(Vector3, Quaternion, Vector3) instead.

Snaps the solver to the desired pose.

C++
public:
 virtual void SnapTo(UnityEngine::Vector3 position, UnityEngine::Quaternion rotation);

Parameters

position
UnityEngine.Vector3
rotation
UnityEngine.Quaternion
Attributes

Remarks

SnapTo may be used to bypass smoothing to a certain position if the object is teleported or spawned.

Applies to

MRTK2 Unity 2018 2.7.0 and other versions
Product Versions (Obsolete)
MRTK2 Unity 2018 (2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0)
MRTK2 Unity 2019 (2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0)
MRTK2 Unity 2020 (2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0)

SnapTo(Vector3, Quaternion, Vector3)

Snaps the solver to the desired pose.

C++
public:
 virtual void SnapTo(UnityEngine::Vector3 position, UnityEngine::Quaternion rotation, UnityEngine::Vector3 scale);

Parameters

position
UnityEngine.Vector3
rotation
UnityEngine.Quaternion
scale
UnityEngine.Vector3

Remarks

SnapTo may be used to bypass smoothing to a certain position if the object is teleported or spawned.

Applies to

MRTK2 Unity 2018 2.7.0 and other versions
Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0