[][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 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 ccd_enabled(self, ccd_enabled: bool) -> Self[src]

pub fn set_ccd_enabled(&mut self, ccd_enabled: 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_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 get_ccd_enabled(&self) -> bool[src]

pub fn build<Handle: BodyHandle>(
    &self,
    parent_handle: Handle
) -> Collider<N, Handle>
[src]

Builds a deformable collider and configures it to be attached to the given parent body.

Auto Trait Implementations

impl<N> !RefUnwindSafe for DeformableColliderDesc<N>

impl<N> Send for DeformableColliderDesc<N>

impl<N> Sync for DeformableColliderDesc<N>

impl<N> Unpin for DeformableColliderDesc<N> where
    N: Unpin

impl<N> !UnwindSafe for DeformableColliderDesc<N>

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,