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§
Sourcefn get_enabled(self) -> bool
fn get_enabled(self) -> bool
get_enabled() overload
Sourcefn set_enabled(self, value: impl Into<bool>)
fn set_enabled(self, value: impl Into<bool>)
set_enabled(bool) overload
Sourcefn get_attached_rigidbody(self) -> Rigidbody
fn get_attached_rigidbody(self) -> Rigidbody
get_attachedRigidbody() overload
Sourcefn get_is_trigger(self) -> bool
fn get_is_trigger(self) -> bool
get_isTrigger() overload
Sourcefn set_is_trigger(self, value: impl Into<bool>)
fn set_is_trigger(self, value: impl Into<bool>)
set_isTrigger(bool) overload
Sourcefn closest_point(self, position: impl Into<Vector3>) -> Vector3
fn closest_point(self, position: impl Into<Vector3>) -> Vector3
ClosestPoint(crate::unity_engine::vector3::Vector3) overload
Sourcefn get_bounds(self) -> Bounds
fn get_bounds(self) -> Bounds
get_bounds() overload
get_sharedMaterial() overload
Sourcefn raycast(
self,
ray: impl Into<Ray>,
max_distance: impl Into<f32>,
) -> (RaycastHit, bool)
fn raycast( self, ray: impl Into<Ray>, max_distance: impl Into<f32>, ) -> (RaycastHit, bool)
Raycast(crate::unity_engine::ray::Ray, f32, *mutbool) overload
Sourcefn raycast_2(
self,
ray: impl Into<Ray>,
max_distance: impl Into<f32>,
) -> (bool, RaycastHit)
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
Sourcefn internal_closest_point_on_bounds(
self,
point: impl Into<Vector3>,
) -> (Vector3, f32)
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
Sourcefn closest_point_on_bounds(self, position: impl Into<Vector3>) -> Vector3
fn closest_point_on_bounds(self, position: impl Into<Vector3>) -> Vector3
ClosestPointOnBounds(crate::unity_engine::vector3::Vector3) overload
Sourcefn closest_point_injected(self) -> (Vector3, Vector3)
fn closest_point_injected(self) -> (Vector3, Vector3)
ClosestPoint_Injected(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector3::Vector3) overload
Sourcefn get_bounds_injected(self) -> Bounds
fn get_bounds_injected(self) -> Bounds
get_bounds_Injected(*mutcrate::unity_engine::bounds::Bounds) overload
Sourcefn raycast_injected(
self,
max_distance: impl Into<f32>,
) -> (Ray, bool, RaycastHit)
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
Sourcefn internal_closest_point_on_bounds_injected(self) -> (Vector3, Vector3, f32)
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§
impl<__T: ICollider> IColliderMethods for __T
unity_engine-collider only.