Struct heron::rapier_plugin::RapierPlugin[][src]

#[must_use]pub struct RapierPlugin {
    pub step_per_second: Option<f64>,
    pub parameters: IntegrationParameters,
}

Plugin to install in order to enable collision detection and physics behavior, powered by rapier.

When creating the plugin, you may choose the number of physics steps per second. For more advanced configuration, you can create the plugin from a rapier IntegrationParameters definition.

Fields

step_per_second: Option<f64>

Number of step per second, None for a step each frame.

parameters: IntegrationParameters

Integration parameters, incl. delta-time at each step.

Implementations

impl RapierPlugin[src]

pub fn from_steps_per_second(steps_per_second: u8) -> RapierPlugin[src]

Configure how many times per second the physics world needs to be updated

Panic

Panic if the number of steps_per_second is 0

Trait Implementations

impl Clone for RapierPlugin[src]

impl Default for RapierPlugin[src]

impl From<IntegrationParameters> for RapierPlugin[src]

impl From<RapierPlugin> for PhysicsPlugin[src]

impl Plugin for RapierPlugin[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> FromResources for T where
    T: Default

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: 'static + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,