Skip to main content

ICollider2DMethods

Trait ICollider2DMethods 

Source
pub trait ICollider2DMethods: ICollider2D {
    // Provided methods
    fn get_attached_rigidbody(self) -> Rigidbody2D { ... }
    fn get_bounds(self) -> Bounds { ... }
    fn overlap_point(self, point: impl Into<Vector2>) -> bool { ... }
    fn get_bounds_injected(self) -> Bounds { ... }
    fn overlap_point_injected(self) -> (bool, Vector2) { ... }
}

Provided Methods§

Source

fn get_attached_rigidbody(self) -> Rigidbody2D

get_attachedRigidbody() overload

Source

fn get_bounds(self) -> Bounds

get_bounds() overload

Source

fn overlap_point(self, point: impl Into<Vector2>) -> bool

OverlapPoint(crate::unity_engine::vector2::Vector2) overload

Source

fn get_bounds_injected(self) -> Bounds

get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload

Source

fn overlap_point_injected(self) -> (bool, Vector2)

OverlapPoint_Injected(*mutcrate::unity_engine::vector2::Vector2) 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: ICollider2D> ICollider2DMethods for __T

Available on crate feature unity_engine-collider2d only.