Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNHitTestResultMBS class.

SCNHitTestResultMBS.boneNode as SCNNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The hit bone.

Only available if the node hit has a SCNSkinnerMBS attached.
(Read only property)

SCNHitTestResultMBS.faceIndex as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The index of the primitive in the geometry element intersected by the search ray.

(Read only property)

SCNHitTestResultMBS.geometryIndex as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The index of the geometry element whose surface the search ray intersects.

Every SCNGeometryMBS object contains one or more SCNGeometryElementMBS objects that define how its vertices connect to form a surface. This property provides the index of the geometry element intersecting the search ray. For more information about that geometry element, use the geometry’s geometryElementAtIndex method.
(Read only property)

SCNHitTestResultMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The internal object reference.

(Read and Write property)

SCNHitTestResultMBS.localCoordinates as SCNVector3MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The point of intersection between the geometry and the search ray, in the local coordinate system of the node containing the geometry.

(Read only property)

Some examples using this property:

SCNHitTestResultMBS.localNormal as SCNVector3MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The surface normal vector at the point of intersection, in the local coordinate system of the node containing the geometry intersected by the search ray.

(Read only property)

SCNHitTestResultMBS.modelTransform as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The world transform matrix of the node containing the intersection.

Use this matrix to transform vectors from the local coordinate space of the node whose geometry is intersected by the search ray to the scene’s world coordinate system.
(Read only property)

SCNHitTestResultMBS.node as SCNNodeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The node whose geometry intersects the search ray.

(Read only property)

SCNHitTestResultMBS.worldCoordinates as SCNVector3MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The point of intersection between the geometry and the search ray, in the scene’s world coordinate system.

(Read only property)

SCNHitTestResultMBS.worldNormal as SCNVector3MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The surface normal vector at the point of intersection, in the scene’s world coordinate system.

(Read only property)

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...