Share via


SCNNode.HitTest Method

Definition

Overloads

Name Description
HitTest(SCNVector3, SCNVector3, NSDictionary)
HitTest(SCNVector3, SCNVector3, SCNHitTestOptions)

Returns an array of hit test results for descendant nodes that intersect with a line between pointA and pointB.

HitTest(SCNVector3, SCNVector3, NSDictionary)

[Foundation.Export("hitTestWithSegmentFromPoint:toPoint:options:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual SceneKit.SCNHitTestResult[] HitTest(SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, Foundation.NSDictionary? options);
[<Foundation.Export("hitTestWithSegmentFromPoint:toPoint:options:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]
override this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * Foundation.NSDictionary -> SceneKit.SCNHitTestResult[]

Parameters

pointA
SCNVector3
pointB
SCNVector3
options
NSDictionary

Returns

Attributes

Applies to

HitTest(SCNVector3, SCNVector3, SCNHitTestOptions)

Returns an array of hit test results for descendant nodes that intersect with a line between pointA and pointB.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public SceneKit.SCNHitTestResult[] HitTest(SceneKit.SCNVector3 pointA, SceneKit.SCNVector3 pointB, SceneKit.SCNHitTestOptions? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.HitTest : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNHitTestOptions -> SceneKit.SCNHitTestResult[]

Parameters

pointA
SCNVector3
pointB
SCNVector3
options
SCNHitTestOptions

Strongly typed set of options to perform the hit-test detection.

This parameter can be null.

Returns

Attributes

Applies to