Skip to main content

IAkTriggerCollisionEnterMethods

Trait IAkTriggerCollisionEnterMethods 

Source
pub trait IAkTriggerCollisionEnterMethods: IAkTriggerCollisionEnter {
    // Provided methods
    fn on_collision_enter(self, in_other: impl Into<Collision>) { ... }
    fn on_trigger_enter(self, in_other: impl Into<Collider>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn on_collision_enter(self, in_other: impl Into<Collision>)

OnCollisionEnter(crate::unity_engine::collision::Collision) overload

Source

fn on_trigger_enter(self, in_other: impl Into<Collider>)

OnTriggerEnter(crate::unity_engine::collider::Collider) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IAkTriggerCollisionEnter> IAkTriggerCollisionEnterMethods for __T

Available on crate feature root-aktriggercollisionenter only.