[][src]Struct rapier_testbed2d::harness::Harness

pub struct Harness {
    pub physics: PhysicsState,
    pub state: RunState,
    // some fields omitted
}

Fields

physics: PhysicsStatestate: RunState

Implementations

impl Harness[src]

pub fn new_empty() -> Self[src]

pub fn new(
    bodies: RigidBodySet,
    colliders: ColliderSet,
    joints: JointSet
) -> Self
[src]

pub fn set_max_steps(&mut self, max_steps: usize)[src]

pub fn integration_parameters_mut(&mut self) -> &mut IntegrationParameters[src]

pub fn clear_callbacks(&mut self)[src]

pub fn physics_state_mut(&mut self) -> &mut PhysicsState[src]

pub fn set_world(
    &mut self,
    bodies: RigidBodySet,
    colliders: ColliderSet,
    joints: JointSet
)
[src]

pub fn set_world_with_gravity(
    &mut self,
    bodies: RigidBodySet,
    colliders: ColliderSet,
    joints: JointSet,
    gravity: Vector<f32>
)
[src]

pub fn add_plugin(&mut self, plugin: impl HarnessPlugin + 'static)[src]

pub fn add_callback<F: FnMut(Option<&mut Window>, Option<&mut GraphicsManager>, &mut PhysicsState, &PhysicsEvents, &RunState) + 'static>(
    &mut self,
    callback: F
)
[src]

pub fn step(&mut self)[src]

pub fn step_with_graphics(
    &mut self,
    window: Option<&mut Window>,
    graphics: Option<&mut GraphicsManager>
)
[src]

pub fn run(&mut self)[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> From<T> 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> 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>,