pub trait IMeshColliderMethods: IMeshCollider {
Show 13 methods
// Provided methods
fn get_shared_mesh(self) -> Mesh { ... }
fn set_shared_mesh(self, value: impl Into<Mesh>) { ... }
fn get_convex(self) -> bool { ... }
fn set_convex(self, value: impl Into<bool>) { ... }
fn get_inflate_mesh(self) -> bool { ... }
fn set_inflate_mesh(self, value: impl Into<bool>) { ... }
fn get_cooking_options(self) -> MeshColliderCookingOptions { ... }
fn set_cooking_options(self, value: impl Into<MeshColliderCookingOptions>) { ... }
fn get_skin_width(self) -> f32 { ... }
fn set_skin_width(self, value: impl Into<f32>) { ... }
fn get_smooth_sphere_collisions(self) -> bool { ... }
fn set_smooth_sphere_collisions(self, value: impl Into<bool>) { ... }
fn ctor(self) { ... }
}Provided Methods§
get_sharedMesh() overload
set_sharedMesh(crate::unity_engine::mesh::Mesh) overload
Sourcefn get_convex(self) -> bool
fn get_convex(self) -> bool
get_convex() overload
Sourcefn set_convex(self, value: impl Into<bool>)
fn set_convex(self, value: impl Into<bool>)
set_convex(bool) overload
Sourcefn get_inflate_mesh(self) -> bool
fn get_inflate_mesh(self) -> bool
get_inflateMesh() overload
Sourcefn set_inflate_mesh(self, value: impl Into<bool>)
fn set_inflate_mesh(self, value: impl Into<bool>)
set_inflateMesh(bool) overload
Sourcefn get_cooking_options(self) -> MeshColliderCookingOptions
fn get_cooking_options(self) -> MeshColliderCookingOptions
get_cookingOptions() overload
Sourcefn set_cooking_options(self, value: impl Into<MeshColliderCookingOptions>)
fn set_cooking_options(self, value: impl Into<MeshColliderCookingOptions>)
set_cookingOptions(crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions) overload
Sourcefn get_skin_width(self) -> f32
fn get_skin_width(self) -> f32
get_skinWidth() overload
Sourcefn set_skin_width(self, value: impl Into<f32>)
fn set_skin_width(self, value: impl Into<f32>)
set_skinWidth(f32) overload
Sourcefn get_smooth_sphere_collisions(self) -> bool
fn get_smooth_sphere_collisions(self) -> bool
get_smoothSphereCollisions() overload
Sourcefn set_smooth_sphere_collisions(self, value: impl Into<bool>)
fn set_smooth_sphere_collisions(self, value: impl Into<bool>)
set_smoothSphereCollisions(bool) 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: IMeshCollider> IMeshColliderMethods for __T
Available on crate feature
unity_engine-meshcollider only.