Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNPhysicsContactMBS class.

SCNPhysicsContactMBS.collisionImpulse as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The force over time of the collision, in newton-seconds.

This property’s value tells you how hard the bodies struck each other in a collision. For example, in a game you might allow a character to proceed unhindered after a minor collision, but take damage when struck with sufficient force.
(Read only property)

SCNPhysicsContactMBS.contactNormal 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 normal vector at the contact point between the two physics bodies, in scene coordinates.

This vector tells you which direction the bodies were moving relative to one another at the time of the collision. For example, in a game you can examine this vector to have enemy characters take damage when struck from above by the player character but damage the player character instead when they collide side-to-side.
(Read only property)

SCNPhysicsContactMBS.contactPoint 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 contact point between the two physics bodies, in scene coordinates.

(Read only property)

SCNPhysicsContactMBS.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
Internal object reference.

(Read and Write property)

SCNPhysicsContactMBS.nodeA 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 containing the first body in the contact.

Use the node’s physicsBody property to examine physics characteristics of the node.
(Read only property)

SCNPhysicsContactMBS.nodeB 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 containing the second body in the contact.

Use the node’s physicsBody property to examine physics characteristics of the node.
(Read only property)

SCNPhysicsContactMBS.penetrationDistance as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The distance of overlap, in units of scene coordinate space, between the two physics bodies.

(Read only property)

SCNPhysicsContactMBS.sweepTestFraction as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Value between 0 and 1 giving the relative position of the physic shape when performing a convex sweep test.

(Read only property)

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


The biggest plugin in space...