[−][src]Struct nphysics2d::object::Ground
A singleton representing the ground.
Most of its methods are useless but provided anyway to be similar to the other bodies.
Methods
impl<N: RealField> Ground<N>
[src]
Trait Implementations
impl<N: RealField> Body<N> for Ground<N>
[src]
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, _: &Vector<N>, _: &IntegrationParameters<N>)
[src]
fn clear_forces(&mut self)
[src]
fn clear_update_flags(&mut self)
[src]
fn update_status(&self) -> BodyUpdateStatus
[src]
fn part(&self, _: usize) -> Option<&dyn BodyPart<N>>
[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) -> DVectorSlice<N>
[src]
fn generalized_velocity(&self) -> DVectorSlice<N>
[src]
fn companion_id(&self) -> usize
[src]
fn set_companion_id(&mut self, id: usize)
[src]
fn generalized_velocity_mut(&mut self) -> DVectorSliceMut<N>
[src]
fn velocity_at_point(&self, _: usize, _: &Point<N>) -> Velocity<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>,
point: &Point<N>
) -> Point<N>
[src]
&self,
_: &dyn BodyPart<N>,
point: &Point<N>
) -> Point<N>
fn position_at_material_point(
&self,
_: &dyn BodyPart<N>,
point: &Point<N>
) -> Isometry<N>
[src]
&self,
_: &dyn BodyPart<N>,
point: &Point<N>
) -> Isometry<N>
fn material_point_at_world_point(
&self,
_: &dyn BodyPart<N>,
point: &Point<N>
) -> Point<N>
[src]
&self,
_: &dyn BodyPart<N>,
point: &Point<N>
) -> Point<N>
fn fill_constraint_geometry(
&self,
_: &dyn BodyPart<N>,
_: usize,
_: &Point<N>,
_: &ForceDirection<N>,
_: usize,
_: usize,
_: &mut [N],
_: &mut N,
_: Option<&DVectorSlice<N>>,
_: Option<&mut N>
)
[src]
&self,
_: &dyn BodyPart<N>,
_: usize,
_: &Point<N>,
_: &ForceDirection<N>,
_: usize,
_: usize,
_: &mut [N],
_: &mut N,
_: Option<&DVectorSlice<N>>,
_: 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,
_: &DVectorSlice<N>,
_: &IntegrationParameters<N>
)
[src]
&mut self,
_: &DVectorSlice<N>,
_: &IntegrationParameters<N>
)
fn warmstart_internal_velocity_constraints(
&mut self,
_: &mut DVectorSliceMut<N>
)
[src]
&mut self,
_: &mut DVectorSliceMut<N>
)
fn step_solve_internal_velocity_constraints(
&mut self,
_: &mut DVectorSliceMut<N>
)
[src]
&mut self,
_: &mut DVectorSliceMut<N>
)
fn step_solve_internal_position_constraints(
&mut self,
_: &IntegrationParameters<N>
)
[src]
&mut self,
_: &IntegrationParameters<N>
)
fn apply_force(&mut self, _: usize, _: &Force<N>, _: ForceType, _: bool)
[src]
fn apply_local_force(&mut self, _: usize, _: &Force<N>, _: ForceType, _: bool)
[src]
fn apply_force_at_point(
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
[src]
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
fn apply_local_force_at_point(
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
[src]
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
fn apply_force_at_local_point(
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
[src]
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
fn apply_local_force_at_local_point(
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
[src]
&mut self,
_: usize,
_: &Vector<N>,
_: &Point<N>,
_: ForceType,
_: bool
)
fn update_activation_status(&mut self)
[src]
fn add_local_inertia_and_com(
&mut self,
_part_index: usize,
_com: Point<N>,
_inertia: Inertia<N>
)
[src]
&mut self,
_part_index: usize,
_com: Point<N>,
_inertia: Inertia<N>
)
fn status_dependent_ndofs(&self) -> usize
[src]
fn status_dependent_body_part_velocity(
&self,
part: &dyn BodyPart<N>
) -> Velocity<N>
[src]
&self,
part: &dyn BodyPart<N>
) -> Velocity<N>
impl<N: RealField> BodyPart<N> for Ground<N>
[src]
fn is_ground(&self) -> bool
[src]
fn center_of_mass(&self) -> Point<N>
[src]
fn local_center_of_mass(&self) -> Point<N>
[src]
fn position(&self) -> Isometry<N>
[src]
fn safe_position(&self) -> Isometry<N>
[src]
fn velocity(&self) -> Velocity<N>
[src]
fn inertia(&self) -> Inertia<N>
[src]
fn local_inertia(&self) -> Inertia<N>
[src]
impl<N: Clone + RealField> Clone for Ground<N>
[src]
impl<N: Debug + RealField> Debug for Ground<N>
[src]
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> 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> 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>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,