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§
Sourcefn get_attached_rigidbody(self) -> Rigidbody2D
fn get_attached_rigidbody(self) -> Rigidbody2D
get_attachedRigidbody() overload
Sourcefn get_bounds(self) -> Bounds
fn get_bounds(self) -> Bounds
get_bounds() overload
Sourcefn overlap_point(self, point: impl Into<Vector2>) -> bool
fn overlap_point(self, point: impl Into<Vector2>) -> bool
OverlapPoint(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_bounds_injected(self) -> Bounds
fn get_bounds_injected(self) -> Bounds
get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload
Sourcefn overlap_point_injected(self) -> (bool, Vector2)
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§
impl<__T: ICollider2D> ICollider2DMethods for __T
Available on crate feature
unity_engine-collider2d only.