[−][src]Struct nphysics2d::object::DeformableColliderDesc
A deformable collider builder.
Implementations
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]
&mut self,
collision_groups: CollisionGroups
) -> &mut Self
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]
self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> Self
pub fn set_body_parts_mapping(
&mut self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> &mut Self
[src]
&mut self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> &mut Self
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]
&self,
parent_handle: Handle
) -> Collider<N, Handle>
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,
N: Unpin,
impl<N> !UnwindSafe for DeformableColliderDesc<N>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,