Platforms to show: All Mac Windows Linux Cross-Platform
SCNPhysicsContactMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SceneKit | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
You don't create SCNPhysicsContact instances directly; SceneKit automatically creates these objects whenever contacts occur.
To receive contact messages, implement events in your of your scene’s SCNPhysicsWorld object. Next, for each physics body in your scene, set the categoryBitMask and collisionBitMask properties to define which interactions should generate contact messages.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 8 properties
- property collisionImpulse as Double
- property contactNormal as SCNVector3MBS
- property contactPoint as SCNVector3MBS
- property Handle as Integer
- property nodeA as SCNNodeMBS
- property nodeB as SCNNodeMBS
- property penetrationDistance as Double
- property sweepTestFraction as Double
- method Constructor Private
This class has no sub classes.
Some methods using this class:
- SCNPhysicsWorldMBS.contactTest(body as SCNPhysicsBodyMBS, options as Dictionary = nil) as SCNPhysicsContactMBS()
- SCNPhysicsWorldMBS.contactTest(bodyA as SCNPhysicsBodyMBS, bodyB as SCNPhysicsBodyMBS, options as Dictionary = nil) as SCNPhysicsContactMBS()
- SCNPhysicsWorldMBS.convexSweepTest(shape as SCNPhysicsShapeMBS, fromTransform as SCNMatrix4MBS, toTransform as SCNMatrix4MBS, options as Dictionary = nil) as SCNPhysicsContactMBS()
Some events using this class:
- SCNPhysicsWorldMBS.didBeginContact(contact as SCNPhysicsContactMBS)
- SCNPhysicsWorldMBS.didEndContact(contact as SCNPhysicsContactMBS)
- SCNPhysicsWorldMBS.didUpdateContact(contact as SCNPhysicsContactMBS)
The items on this page are in the following plugins: MBS Mac64bit Plugin.
SCNPhysicsConeTwistJointMBS - SCNPhysicsFieldMBS