[−][src]Struct oxygengine_physics_2d::prelude::Ground
A singleton representing the ground.
Most of its methods are useless but provided anyway to be similar to the other bodies.
Implementations
impl<N> Ground<N> where
N: RealField,
[src]
N: RealField,
Trait Implementations
impl<N> Body<N> for Ground<N> where
N: RealField,
[src]
N: RealField,
fn gravity_enabled(&self) -> bool
[src]
fn enable_gravity(&mut self, bool)
[src]
fn step_started(&mut self)
[src]
fn update_kinematics(&mut self)
[src]
fn update_dynamics(&mut self, N)
[src]
fn update_acceleration(
&mut self,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&IntegrationParameters<N>
)
[src]
&mut self,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&IntegrationParameters<N>
)
fn clear_forces(&mut self)
[src]
fn clear_update_flags(&mut self)
[src]
fn update_status(&self) -> BodyUpdateStatus
[src]
fn num_parts(&self) -> usize
[src]
fn part(&self, i: usize) -> Option<&(dyn BodyPart<N> + 'static)>
[src]
fn is_ground(&self) -> bool
[src]
fn apply_displacement(&mut self, &[N])
[src]
fn status(&self) -> BodyStatus
[src]
fn set_status(&mut self, BodyStatus)
[src]
fn activation_status(&self) -> &ActivationStatus<N>
[src]
fn is_active(&self) -> bool
[src]
fn is_dynamic(&self) -> bool
[src]
fn is_kinematic(&self) -> bool
[src]
fn is_static(&self) -> bool
[src]
fn deformed_positions(&self) -> Option<(DeformationsType, &[N])>
[src]
fn deformed_positions_mut(&mut self) -> Option<(DeformationsType, &mut [N])>
[src]
fn ndofs(&self) -> usize
[src]
fn generalized_acceleration(
&self
) -> Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>
[src]
&self
) -> Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>
fn generalized_velocity(
&self
) -> Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>
[src]
&self
) -> Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>
fn companion_id(&self) -> usize
[src]
fn set_companion_id(&mut self, id: usize)
[src]
fn generalized_velocity_mut(
&mut self
) -> Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
[src]
&mut self
) -> Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
fn velocity_at_point(&self, usize, &Point<N, U2>) -> Velocity2<N>
[src]
fn integrate(&mut self, &IntegrationParameters<N>)
[src]
fn activate(&mut self)
[src]
fn activate_with_energy(&mut self, N)
[src]
fn deactivate(&mut self)
[src]
fn set_deactivation_threshold(&mut self, Option<N>)
[src]
fn world_point_at_material_point(
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Point<N, U2>
[src]
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Point<N, U2>
fn position_at_material_point(
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Isometry<N, U2, Unit<Complex<N>>>
[src]
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Isometry<N, U2, Unit<Complex<N>>>
fn material_point_at_world_point(
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Point<N, U2>
[src]
&self,
&(dyn BodyPart<N> + 'static),
point: &Point<N, U2>
) -> Point<N, U2>
fn fill_constraint_geometry(
&self,
&(dyn BodyPart<N> + 'static),
usize,
&Point<N, U2>,
&ForceDirection<N>,
usize,
usize,
&mut [N],
&mut N,
Option<&Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>>,
Option<&mut N>
)
[src]
&self,
&(dyn BodyPart<N> + 'static),
usize,
&Point<N, U2>,
&ForceDirection<N>,
usize,
usize,
&mut [N],
&mut N,
Option<&Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>>,
Option<&mut N>
)
fn advance(&mut self, N)
[src]
fn validate_advancement(&mut self)
[src]
fn clamp_advancement(&mut self)
[src]
fn part_motion(&self, usize, N) -> Option<BodyPartMotion<N>>
[src]
fn has_active_internal_constraints(&mut self) -> bool
[src]
fn setup_internal_velocity_constraints(
&mut self,
&Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>,
&IntegrationParameters<N>
)
[src]
&mut self,
&Matrix<N, Dynamic, U1, SliceStorage<'_, N, Dynamic, U1, U1, Dynamic>>,
&IntegrationParameters<N>
)
fn warmstart_internal_velocity_constraints(
&mut self,
&mut Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
)
[src]
&mut self,
&mut Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
)
fn step_solve_internal_velocity_constraints(
&mut self,
&mut Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
)
[src]
&mut self,
&mut Matrix<N, Dynamic, U1, SliceStorageMut<'_, N, Dynamic, U1, U1, Dynamic>>
)
fn step_solve_internal_position_constraints(
&mut self,
&IntegrationParameters<N>
)
[src]
&mut self,
&IntegrationParameters<N>
)
fn apply_force(&mut self, usize, &Force2<N>, ForceType, bool)
[src]
fn apply_local_force(&mut self, usize, &Force2<N>, ForceType, bool)
[src]
fn apply_force_at_point(
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
[src]
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
fn apply_local_force_at_point(
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
[src]
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
fn apply_force_at_local_point(
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
[src]
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
fn apply_local_force_at_local_point(
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
[src]
&mut self,
usize,
&Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>,
&Point<N, U2>,
ForceType,
bool
)
fn update_activation_status(&mut self)
[src]
fn add_local_inertia_and_com(
&mut self,
_part_index: usize,
_com: Point<N, U2>,
_inertia: Inertia2<N>
)
[src]
&mut self,
_part_index: usize,
_com: Point<N, U2>,
_inertia: Inertia2<N>
)
fn status_dependent_ndofs(&self) -> usize
[src]
fn status_dependent_body_part_velocity(
&self,
part: &(dyn BodyPart<N> + 'static)
) -> Velocity2<N>
[src]
&self,
part: &(dyn BodyPart<N> + 'static)
) -> Velocity2<N>
impl<N> BodyPart<N> for Ground<N> where
N: RealField,
[src]
N: RealField,
fn is_ground(&self) -> bool
[src]
fn center_of_mass(&self) -> Point<N, U2>
[src]
fn local_center_of_mass(&self) -> Point<N, U2>
[src]
fn position(&self) -> Isometry<N, U2, Unit<Complex<N>>>
[src]
fn safe_position(&self) -> Isometry<N, U2, Unit<Complex<N>>>
[src]
fn velocity(&self) -> Velocity2<N>
[src]
fn inertia(&self) -> Inertia2<N>
[src]
fn local_inertia(&self) -> Inertia2<N>
[src]
impl<N> Clone for Ground<N> where
N: Clone + RealField,
[src]
N: Clone + RealField,
impl<N> Debug for Ground<N> where
N: Debug + RealField,
[src]
N: Debug + RealField,
Auto Trait Implementations
impl<N> RefUnwindSafe for Ground<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Ground<N>
impl<N> Sync for Ground<N>
impl<N> Unpin for Ground<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Ground<N> where
N: UnwindSafe,
N: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[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<T> UserData for T where
T: Clone + Send + Sync + Any,
[src]
T: Clone + Send + Sync + Any,
fn clone_boxed(&self) -> Box<dyn UserData + 'static>
[src]
fn to_any(&self) -> Box<dyn Any + 'static + Sync + Send>
[src]
fn as_any(&self) -> &(dyn Any + 'static + Sync + Send)
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,