Skip to main content

IColliderMethods

Trait IColliderMethods 

Source
pub trait IColliderMethods: ICollider {
Show 17 methods // Provided methods fn get_enabled(self) -> bool { ... } fn set_enabled(self, value: impl Into<bool>) { ... } fn get_attached_rigidbody(self) -> Rigidbody { ... } fn get_is_trigger(self) -> bool { ... } fn set_is_trigger(self, value: impl Into<bool>) { ... } fn closest_point(self, position: impl Into<Vector3>) -> Vector3 { ... } fn get_bounds(self) -> Bounds { ... } fn get_shared_material(self) -> PhysicMaterial { ... } fn raycast( self, ray: impl Into<Ray>, max_distance: impl Into<f32>, ) -> (RaycastHit, bool) { ... } fn raycast_2( self, ray: impl Into<Ray>, max_distance: impl Into<f32>, ) -> (bool, RaycastHit) { ... } fn internal_closest_point_on_bounds( self, point: impl Into<Vector3>, ) -> (Vector3, f32) { ... } fn closest_point_on_bounds(self, position: impl Into<Vector3>) -> Vector3 { ... } fn ctor(self) { ... } fn closest_point_injected(self) -> (Vector3, Vector3) { ... } fn get_bounds_injected(self) -> Bounds { ... } fn raycast_injected( self, max_distance: impl Into<f32>, ) -> (Ray, bool, RaycastHit) { ... } fn internal_closest_point_on_bounds_injected( self, ) -> (Vector3, Vector3, f32) { ... }
}

Provided Methods§

Source

fn get_enabled(self) -> bool

get_enabled() overload

Source

fn set_enabled(self, value: impl Into<bool>)

set_enabled(bool) overload

Source

fn get_attached_rigidbody(self) -> Rigidbody

get_attachedRigidbody() overload

Source

fn get_is_trigger(self) -> bool

get_isTrigger() overload

Source

fn set_is_trigger(self, value: impl Into<bool>)

set_isTrigger(bool) overload

Source

fn closest_point(self, position: impl Into<Vector3>) -> Vector3

ClosestPoint(crate::unity_engine::vector3::Vector3) overload

Source

fn get_bounds(self) -> Bounds

get_bounds() overload

Source

fn get_shared_material(self) -> PhysicMaterial

get_sharedMaterial() overload

Source

fn raycast( self, ray: impl Into<Ray>, max_distance: impl Into<f32>, ) -> (RaycastHit, bool)

Raycast(crate::unity_engine::ray::Ray, f32, *mutbool) overload

Source

fn raycast_2( self, ray: impl Into<Ray>, max_distance: impl Into<f32>, ) -> (bool, RaycastHit)

Raycast(crate::unity_engine::ray::Ray, *mutcrate::unity_engine::raycasthit::RaycastHit, f32) overload

Source

fn internal_closest_point_on_bounds( self, point: impl Into<Vector3>, ) -> (Vector3, f32)

Internal_ClosestPointOnBounds(crate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector3::Vector3, *mutf32) overload

Source

fn closest_point_on_bounds(self, position: impl Into<Vector3>) -> Vector3

ClosestPointOnBounds(crate::unity_engine::vector3::Vector3) overload

Source

fn ctor(self)

.ctor() overload

Source

fn closest_point_injected(self) -> (Vector3, Vector3)

ClosestPoint_Injected(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector3::Vector3) overload

Source

fn get_bounds_injected(self) -> Bounds

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

Source

fn raycast_injected( self, max_distance: impl Into<f32>, ) -> (Ray, bool, RaycastHit)

Raycast_Injected(*mutcrate::unity_engine::ray::Ray, f32, *mutbool, *mutcrate::unity_engine::raycasthit::RaycastHit) overload

Source

fn internal_closest_point_on_bounds_injected(self) -> (Vector3, Vector3, f32)

Internal_ClosestPointOnBounds_Injected(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector3::Vector3, *mutf32) 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: ICollider> IColliderMethods for __T

Available on crate feature unity_engine-collider only.