UxrGrabPointShape.GetClosestSnap Method

Gets the closest snap position and rotation that should be used when a UxrGrabber tries to a grab point, defined by transform used for snapping and the transform used to compute proximity.

Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public abstract void GetClosestSnap(
	UxrGrabber grabber,
	Transform snapTransform,
	Transform distanceTransform,
	out Vector3 position,
	out Quaternion rotation
)


Parameters

 

grabber
Type: UltimateXR.Manipulation.UxrGrabber
Grabber to compute the snapping for
snapTransform
Type: Transform
The Transform on the grabbable object that is used to align to the grabber
distanceTransform
Type: Transform
The Transform on the grabbable object that is used to compute the distance to the grabber
position
Type: Vector3
Snap position
rotation
Type: Quaternion
Snap rotation

Return Value

Type:
Distance value

See Also

Reference

UxrGrabPointShape Class
UltimateXR.Manipulation Namespace