[][src]Struct nphysics3d::object::DeformableColliderDesc

pub struct DeformableColliderDesc<N: RealField> { /* fields omitted */ }

A deformable collider builder.

Methods

impl<N: RealField> DeformableColliderDesc<N>[src]

pub fn new(shape: ShapeHandle<N>) -> Self[src]

Creates a deformable collider from the given shape.

Panics if the shape is not deformable.

impl<N: RealField> DeformableColliderDesc<N>[src]

pub fn user_data(self, data: impl UserData) -> Self[src]

Sets a user-data to be attached to the object being built.

pub fn set_user_data(&mut self, data: Option<impl UserData>) -> &mut Self[src]

Sets the user-data to be attached to the object being built.

pub fn get_user_data(&self) -> Option<&(dyn Any + Send + Sync)>[src]

Reference to the user-data to be attached to the object being built.

pub fn shape(self, shape: ShapeHandle<N>) -> Self[src]

Sets the shape of this collider builder.

Panics if the shape is not deformable.

pub fn set_shape(&mut self, shape: ShapeHandle<N>) -> &mut Self[src]

Sets the shape of this collider builder.

Panics if the shape is not deformable.

pub fn material(self, material: MaterialHandle<N>) -> Self[src]

pub fn set_material(&mut self, material: MaterialHandle<N>) -> &mut Self[src]

pub fn name(self, name: String) -> Self[src]

pub fn set_name(&mut self, name: String) -> &mut Self[src]

pub fn margin(self, margin: N) -> Self[src]

pub fn set_margin(&mut self, margin: N) -> &mut Self[src]

pub fn collision_groups(self, collision_groups: CollisionGroups) -> Self[src]

pub fn set_collision_groups(
    &mut self,
    collision_groups: CollisionGroups
) -> &mut Self
[src]

pub fn linear_prediction(self, linear_prediction: N) -> Self[src]

pub fn set_linear_prediction(&mut self, linear_prediction: N) -> &mut Self[src]

pub fn angular_prediction(self, angular_prediction: N) -> Self[src]

pub fn set_angular_prediction(&mut self, angular_prediction: N) -> &mut Self[src]

pub fn as_sensor(self, is_sensor: bool) -> Self[src]

pub fn set_as_sensor(&mut self, is_sensor: bool) -> &mut Self[src]

pub fn body_parts_mapping(
    self,
    body_parts_mapping: Option<Arc<Vec<usize>>>
) -> Self
[src]

pub fn set_body_parts_mapping(
    &mut self,
    body_parts_mapping: Option<Arc<Vec<usize>>>
) -> &mut Self
[src]

pub fn get_shape(&self) -> &dyn Shape<N>[src]

pub fn get_name(&self) -> &str[src]

pub fn get_material(&self) -> Option<&dyn Material<N>>[src]

pub fn get_margin(&self) -> N[src]

pub fn get_collision_groups(&self) -> CollisionGroups[src]

pub fn get_linear_prediction(&self) -> N[src]

pub fn get_angular_prediction(&self) -> N[src]

pub fn get_is_sensor(&self) -> bool[src]

pub fn build_parent<'w>(
    &self,
    parent: BodyHandle,
    world: &'w mut World<N>
) -> Option<&'w mut Collider<N>>
[src]

Builds a deformable collider attached to parent into the world.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self