[][src]Struct rapier_testbed3d::Testbed

pub struct Testbed { /* fields omitted */ }

Implementations

impl Testbed[src]

pub fn new_empty() -> Testbed[src]

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

pub fn from_builders(
    default: usize,
    builders: Vec<(&'static str, fn(_: &mut Self))>
) -> Self
[src]

pub fn set_number_of_steps_per_frame(&mut self, nsteps: usize)[src]

pub fn allow_grabbing_behind_ground(&mut self, allow: bool)[src]

pub fn hide_performance_counters(&mut self)[src]

pub fn show_performance_counters(&mut self)[src]

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

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

pub fn harness_mut(&mut self) -> &mut Harness[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 set_builders(&mut self, builders: Vec<(&'static str, fn(_: &mut Self))>)[src]

pub fn look_at(&mut self, eye: Point3<f32>, at: Point3<f32>)[src]

pub fn set_body_color(&mut self, body: RigidBodyHandle, color: Point3<f32>)[src]

pub fn set_collider_initial_color(
    &mut self,
    collider: ColliderHandle,
    color: Point3<f32>
)
[src]

pub fn set_body_wireframe(
    &mut self,
    body: RigidBodyHandle,
    wireframe_enabled: bool
)
[src]

pub fn graphics_mut(&mut self) -> &mut GraphicsManager[src]

pub fn set_up_axis(&mut self, up_axis: Vector3<f32>)[src]

pub fn load_obj(path: &str) -> Vec<(Vec<Point3<f32>>, Vec<usize>)>[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 add_plugin(&mut self, plugin: impl TestbedPlugin + 'static)[src]

pub fn run(mut self: Self)[src]

Trait Implementations

impl State for Testbed[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>,