[−][src]Struct nphysics3d::object::Ground
A singleton representing the ground.
Most of its methods are useless but provided anyway to be similar to the other bodies.
Trait Implementations
impl<N: Real> Body<N> for Ground<N>
[src]
fn name(&self) -> &str
[src]
fn set_name(&mut self, name: String)
[src]
fn gravity_enabled(&self) -> bool
[src]
fn enable_gravity(&mut self, _: bool)
[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 handle(&self) -> BodyHandle
[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 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 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]
Update whether this body needs to be waken up after a user-interaction.
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>
)
Add the given inertia to the local inertia of this body part.
fn status_dependent_ndofs(&self) -> usize
[src]
The number of degrees of freedom (DOF) of this body, taking its status into account. Read more
fn status_dependent_body_part_velocity(
&self,
part: &dyn BodyPart<N>
) -> Velocity<N>
[src]
&self,
part: &dyn BodyPart<N>
) -> Velocity<N>
The velocity of the specified body part, taking this body status into account. Read more
impl<N: Real> BodyPart<N> for Ground<N>
[src]
fn is_ground(&self) -> bool
[src]
fn part_handle(&self) -> BodyPartHandle
[src]
fn center_of_mass(&self) -> Point<N>
[src]
fn 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 + Real> Clone for Ground<N>
[src]
fn clone(&self) -> Ground<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N: Debug + Real> Debug for Ground<N>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self