[−][src]Struct oxygengine_physics_2d::prelude::MassConstraintSystemDesc
A builder of a mass-constraint system.
Implementations
impl<'a, N> MassConstraintSystemDesc<'a, N> where
N: RealField,
[src]
N: RealField,
pub fn user_data(self, data: impl UserData) -> MassConstraintSystemDesc<'a, 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 MassConstraintSystemDesc<'a, N>
[src]
&mut self,
data: Option<impl UserData>
) -> &mut MassConstraintSystemDesc<'a, 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 from_polyline(
polyline: &'a Polyline<N>
) -> MassConstraintSystemDesc<'a, N>
[src]
polyline: &'a Polyline<N>
) -> MassConstraintSystemDesc<'a, N>
Create a mass-constraints system form a polygonal line.
pub fn quad(subdiv_x: usize, subdiv_y: usize) -> MassConstraintSystemDesc<'a, N>
[src]
Create a quad-shaped body.
pub fn clear_kinematic_nodes(&mut self) -> &mut MassConstraintSystemDesc<'a, N>
[src]
Mark all nodes as non-kinematic.
pub fn plasticity(
self,
strain_threshold: N,
creep: N,
max_force: N
) -> MassConstraintSystemDesc<'a, N>
[src]
self,
strain_threshold: N,
creep: N,
max_force: N
) -> MassConstraintSystemDesc<'a, N>
pub fn set_plasticity(
&mut self,
strain_threshold: N,
creep: N,
max_force: N
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
strain_threshold: N,
creep: N,
max_force: N
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn kinematic_nodes(self, nodes: &[usize]) -> MassConstraintSystemDesc<'a, N>
[src]
pub fn set_nodes_kinematic(
&mut self,
nodes: &[usize]
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
nodes: &[usize]
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn gravity_enabled(
self,
gravity_enabled: bool
) -> MassConstraintSystemDesc<'a, N>
[src]
self,
gravity_enabled: bool
) -> MassConstraintSystemDesc<'a, N>
pub fn enable_gravity(
&mut self,
gravity_enabled: bool
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
gravity_enabled: bool
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn stiffness(self, stiffness: Option<N>) -> MassConstraintSystemDesc<'a, N>
[src]
pub fn set_stiffness(
&mut self,
stiffness: Option<N>
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
stiffness: Option<N>
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn sleep_threshold(
self,
sleep_threshold: Option<N>
) -> MassConstraintSystemDesc<'a, N>
[src]
self,
sleep_threshold: Option<N>
) -> MassConstraintSystemDesc<'a, N>
pub fn set_sleep_threshold(
&mut self,
sleep_threshold: Option<N>
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
sleep_threshold: Option<N>
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn mass(self, mass: N) -> MassConstraintSystemDesc<'a, N>
[src]
pub fn set_mass(&mut self, mass: N) -> &mut MassConstraintSystemDesc<'a, N>
[src]
pub fn status(self, status: BodyStatus) -> MassConstraintSystemDesc<'a, N>
[src]
pub fn set_status(
&mut self,
status: BodyStatus
) -> &mut MassConstraintSystemDesc<'a, N>
[src]
&mut self,
status: BodyStatus
) -> &mut MassConstraintSystemDesc<'a, N>
pub fn get_plasticity_strain_threshold(&self) -> N
[src]
pub fn get_plasticity_creep(&self) -> N
[src]
pub fn get_plasticity_max_force(&self) -> N
[src]
pub fn get_kinematic_nodes(&self) -> &[usize]ⓘ
[src]
pub fn is_gravity_enabled(&self) -> bool
[src]
pub fn get_stiffness(&self) -> Option<N>
[src]
pub fn get_sleep_threshold(&self) -> Option<N>
[src]
pub fn get_mass(&self) -> N
[src]
pub fn get_status(&self) -> BodyStatus
[src]
pub fn build(&self) -> MassConstraintSystem<N>
[src]
Builds a mass-constraint based deformable body from this description.
Auto Trait Implementations
impl<'a, N> !RefUnwindSafe for MassConstraintSystemDesc<'a, N>
impl<'a, N> Send for MassConstraintSystemDesc<'a, N> where
N: Scalar,
N: Scalar,
impl<'a, N> Sync for MassConstraintSystemDesc<'a, N> where
N: Scalar,
N: Scalar,
impl<'a, N> Unpin for MassConstraintSystemDesc<'a, N> where
N: Unpin,
N: Unpin,
impl<'a, N> !UnwindSafe for MassConstraintSystemDesc<'a, 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>,