pub unsafe trait SCNPhysicsContactDelegate: NSObjectProtocol {
// Provided methods
unsafe fn physicsWorld_didBeginContact(
&self,
world: &SCNPhysicsWorld,
contact: &SCNPhysicsContact,
)
where Self: Sized + Message { ... }
unsafe fn physicsWorld_didUpdateContact(
&self,
world: &SCNPhysicsWorld,
contact: &SCNPhysicsContact,
)
where Self: Sized + Message { ... }
unsafe fn physicsWorld_didEndContact(
&self,
world: &SCNPhysicsWorld,
contact: &SCNPhysicsContact,
)
where Self: Sized + Message { ... }
}Available on crate feature
SCNPhysicsWorld only.Expand description
The SCNPhysicsContactDelegate protocol is to be implemented by delegates that want to be notified when a contact occured.
See also Apple’s documentation
Provided Methods§
unsafe fn physicsWorld_didBeginContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
Available on crate feature
SCNPhysicsContact only.unsafe fn physicsWorld_didUpdateContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
Available on crate feature
SCNPhysicsContact only.unsafe fn physicsWorld_didEndContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
Available on crate feature
SCNPhysicsContact only.