Struct rhusics_core::WorldParameters
source · pub struct WorldParameters<V, S> { /* private fields */ }
Expand description
Global parameters for the physics world
Implementations
sourceimpl<V, S> WorldParameters<V, S>where
V: VectorSpace,
S: BaseFloat,
impl<V, S> WorldParameters<V, S>where
V: VectorSpace,
S: BaseFloat,
sourcepub fn with_damping(self, damping: S) -> Self
pub fn with_damping(self, damping: S) -> Self
Set global damping, can be overriden by individual physical entities
sourcepub fn entity_damping(&self, body: Option<S>) -> S
pub fn entity_damping(&self, body: Option<S>) -> S
Get damping for a specific physics entity
Trait Implementations
sourceimpl<V: Clone, S: Clone> Clone for WorldParameters<V, S>
impl<V: Clone, S: Clone> Clone for WorldParameters<V, S>
sourcefn clone(&self) -> WorldParameters<V, S>
fn clone(&self) -> WorldParameters<V, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<V: Debug, S: Debug> Debug for WorldParameters<V, S>
impl<V: Debug, S: Debug> Debug for WorldParameters<V, S>
sourceimpl<V, S> Default for WorldParameters<V, S>where
V: VectorSpace,
S: BaseFloat,
impl<V, S> Default for WorldParameters<V, S>where
V: VectorSpace,
S: BaseFloat,
Auto Trait Implementations
impl<V, S> RefUnwindSafe for WorldParameters<V, S>where
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, S> Send for WorldParameters<V, S>where
S: Send,
V: Send,
impl<V, S> Sync for WorldParameters<V, S>where
S: Sync,
V: Sync,
impl<V, S> Unpin for WorldParameters<V, S>where
S: Unpin,
V: Unpin,
impl<V, S> UnwindSafe for WorldParameters<V, S>where
S: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more