UxrGrabPointShapeAxisAngle.GetDistanceFromGrabber Method

Gets the distance from a UxrGrabber 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 override float GetDistanceFromGrabber(
	UxrGrabber grabber,
	Transform snapTransform,
	Transform distanceTransform
)

Parameters

 

grabber
Type: UltimateXR.Manipulation.UxrGrabber
Grabber to compute the distance from
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

Return Value

Type: Single
Distance value

See Also

Reference

UxrGrabPointShapeAxisAngle Class
UltimateXR.Manipulation Namespace