SCNPhysicsContactDelegate

Trait SCNPhysicsContactDelegate 

Source
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§

Source

unsafe fn physicsWorld_didBeginContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
where Self: Sized + Message,

Available on crate feature SCNPhysicsContact only.
Source

unsafe fn physicsWorld_didUpdateContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
where Self: Sized + Message,

Available on crate feature SCNPhysicsContact only.
Source

unsafe fn physicsWorld_didEndContact( &self, world: &SCNPhysicsWorld, contact: &SCNPhysicsContact, )
where Self: Sized + Message,

Available on crate feature SCNPhysicsContact only.

Trait Implementations§

Source§

impl ProtocolType for dyn SCNPhysicsContactDelegate

Source§

const NAME: &'static str = "SCNPhysicsContactDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn SCNPhysicsContactDelegate

Implementations on Foreign Types§

Source§

impl<T> SCNPhysicsContactDelegate for ProtocolObject<T>

Implementors§