Struct heron::PhysicsPlugin[][src]

#[must_use]pub struct PhysicsPlugin { /* fields omitted */ }

Plugin to install in order to enable collision detection and physics behavior.

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.

Implementations

impl PhysicsPlugin[src]

pub fn from_steps_per_second(steps_per_second: u8) -> Self[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 Default for PhysicsPlugin[src]

impl From<IntegrationParameters> for PhysicsPlugin[src]

impl From<RapierPlugin> for PhysicsPlugin[src]

impl Plugin for PhysicsPlugin[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> 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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,