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 |
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 |
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 |
(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 |
(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 |
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 |
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 |
(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 |
(Read only property)
The items on this page are in the following plugins: MBS Mac64bit Plugin.