[][src]Struct bevy_rapier3d::physics::RapierConfiguration

pub struct RapierConfiguration {
    pub gravity: Vector<f32>,
    pub scale: f32,
    pub physics_pipeline_active: bool,
    pub query_pipeline_active: bool,
    pub time_dependent_number_of_timesteps: bool,
}

A resource for specifying configuration information for the physics simulation

Fields

gravity: Vector<f32>

Specifying the gravity of the physics simulation.

scale: f32

Specifies a scale ratio between the physics world and the bevy transforms. This will affect the transform synchronization between Bevy and Rapier. Each Rapier rigid-body position will have its coordinates multiplied by this scale factor.

physics_pipeline_active: bool

Specifies if the physics simulation is active and update the physics world.

query_pipeline_active: bool

Specifies if the query pipeline is active and update the query pipeline.

time_dependent_number_of_timesteps: bool

Specifies if the number of physics steps run at each frame should depend of the real-world time elapsed since the last step.

Trait Implementations

impl Default for RapierConfiguration[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>,