[−][src]Struct oxygengine_physics_2d::prelude::DeformableColliderDesc
A deformable collider builder.
Implementations
impl<N> DeformableColliderDesc<N> where
N: RealField,
[src]
N: RealField,
pub fn new(shape: ShapeHandle<N>) -> DeformableColliderDesc<N>
[src]
Creates a deformable collider from the given shape.
Panics if the shape is not deformable.
impl<N> DeformableColliderDesc<N> where
N: RealField,
[src]
N: RealField,
pub fn user_data(self, data: impl UserData) -> DeformableColliderDesc<N>
[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 DeformableColliderDesc<N>
[src]
&mut self,
data: Option<impl UserData>
) -> &mut DeformableColliderDesc<N>
Sets the user-data to be attached to the object being built.
pub fn get_user_data(&self) -> Option<&(dyn Any + 'static + Sync + Send)>
[src]
Reference to the user-data to be attached to the object being built.
pub fn shape(self, shape: ShapeHandle<N>) -> DeformableColliderDesc<N>
[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 DeformableColliderDesc<N>
[src]
&mut self,
shape: ShapeHandle<N>
) -> &mut DeformableColliderDesc<N>
Sets the shape of this collider builder.
Panics if the shape is not deformable.
pub fn material(self, material: MaterialHandle<N>) -> DeformableColliderDesc<N>
[src]
pub fn set_material(
&mut self,
material: MaterialHandle<N>
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
material: MaterialHandle<N>
) -> &mut DeformableColliderDesc<N>
pub fn margin(self, margin: N) -> DeformableColliderDesc<N>
[src]
pub fn set_margin(&mut self, margin: N) -> &mut DeformableColliderDesc<N>
[src]
pub fn collision_groups(
self,
collision_groups: CollisionGroups
) -> DeformableColliderDesc<N>
[src]
self,
collision_groups: CollisionGroups
) -> DeformableColliderDesc<N>
pub fn set_collision_groups(
&mut self,
collision_groups: CollisionGroups
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
collision_groups: CollisionGroups
) -> &mut DeformableColliderDesc<N>
pub fn linear_prediction(
self,
linear_prediction: N
) -> DeformableColliderDesc<N>
[src]
self,
linear_prediction: N
) -> DeformableColliderDesc<N>
pub fn set_linear_prediction(
&mut self,
linear_prediction: N
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
linear_prediction: N
) -> &mut DeformableColliderDesc<N>
pub fn angular_prediction(
self,
angular_prediction: N
) -> DeformableColliderDesc<N>
[src]
self,
angular_prediction: N
) -> DeformableColliderDesc<N>
pub fn set_angular_prediction(
&mut self,
angular_prediction: N
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
angular_prediction: N
) -> &mut DeformableColliderDesc<N>
pub fn as_sensor(self, is_sensor: bool) -> DeformableColliderDesc<N>
[src]
pub fn set_as_sensor(
&mut self,
is_sensor: bool
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
is_sensor: bool
) -> &mut DeformableColliderDesc<N>
pub fn ccd_enabled(self, ccd_enabled: bool) -> DeformableColliderDesc<N>
[src]
pub fn set_ccd_enabled(
&mut self,
ccd_enabled: bool
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
ccd_enabled: bool
) -> &mut DeformableColliderDesc<N>
pub fn body_parts_mapping(
self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> DeformableColliderDesc<N>
[src]
self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> DeformableColliderDesc<N>
pub fn set_body_parts_mapping(
&mut self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> &mut DeformableColliderDesc<N>
[src]
&mut self,
body_parts_mapping: Option<Arc<Vec<usize>>>
) -> &mut DeformableColliderDesc<N>
pub fn get_shape(&self) -> &(dyn Shape<N> + 'static)
[src]
pub fn get_material(&self) -> Option<&(dyn Material<N> + 'static)>
[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>(&self, parent_handle: Handle) -> Collider<N, Handle> where
Handle: BodyHandle,
[src]
Handle: BodyHandle,
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> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
T: Any,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
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>,