Click or drag to resize

InteractableEngageableDetectionFindEngageableObject Method (Vector3, Single, Single, Boolean)

Gets the closest EngageableObject to a position

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static IEngageableObject FindEngageableObject(
	UnityEngine.Vector3 center,
	float maxDistance,
	out float closestDistance,
	bool verboseLogging
)

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)
verboseLogging
Type: SystemBoolean
Enable verbose logging

Return Value

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