Skip to main content

IMeshColliderMethods

Trait IMeshColliderMethods 

Source
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§

Source

fn get_shared_mesh(self) -> Mesh

get_sharedMesh() overload

Source

fn set_shared_mesh(self, value: impl Into<Mesh>)

set_sharedMesh(crate::unity_engine::mesh::Mesh) overload

Source

fn get_convex(self) -> bool

get_convex() overload

Source

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

set_convex(bool) overload

Source

fn get_inflate_mesh(self) -> bool

get_inflateMesh() overload

Source

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

set_inflateMesh(bool) overload

Source

fn get_cooking_options(self) -> MeshColliderCookingOptions

get_cookingOptions() overload

Source

fn set_cooking_options(self, value: impl Into<MeshColliderCookingOptions>)

set_cookingOptions(crate::unity_engine::meshcollidercookingoptions::MeshColliderCookingOptions) overload

Source

fn get_skin_width(self) -> f32

get_skinWidth() overload

Source

fn set_skin_width(self, value: impl Into<f32>)

set_skinWidth(f32) overload

Source

fn get_smooth_sphere_collisions(self) -> bool

get_smoothSphereCollisions() overload

Source

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

set_smoothSphereCollisions(bool) overload

Source

fn ctor(self)

.ctor() 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: IMeshCollider> IMeshColliderMethods for __T

Available on crate feature unity_engine-meshcollider only.