Language
Edit

Solver.SnapTo(Vector3, Quaternion, Vector3) Method

Definition

Snaps the solver to the desired pose.

public virtual void SnapTo(UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Vector3 scale);
abstract member SnapTo : UnityEngine.Vector3 * UnityEngine.Quaternion * UnityEngine.Vector3 -> unit
override this.SnapTo : UnityEngine.Vector3 * UnityEngine.Quaternion * UnityEngine.Vector3 -> unit
Public Overridable Sub SnapTo (position As Vector3, rotation As Quaternion, scale As Vector3)

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