Click or drag to resize

InteractableEngageableDetectionFindInteractableObject Method (Vector3, Single, Single)

Gets the closest EngageableObject to a position

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static IInteractableObject FindInteractableObject(
	UnityEngine.Vector3 center,
	float maxDistance,
	out float closestDistance
)

Parameters

center
Type: UnityEngine.Vector3
Target position
maxDistance
Type: SystemSingle
Maximum distance to search
closestDistance
Type: SystemSingle
The distance to the object returned (if applicable)

Return Value

Type: IInteractableObject
Returns the closet EngageableObject to the input vector
See Also