[][src]Struct physx::scene::SceneBuilder

pub struct SceneBuilder { /* fields omitted */ }

Implementations

impl SceneBuilder[src]

pub fn set_gravity(&mut self, gravity: Vec3) -> &mut Self[src]

Set the gravity for the scene.

Default: [0.0, -9.80665, 0.0] (standard gravity)

pub fn set_simulation_filter_shader(
    &mut self,
    simulation_filter_shader: SimulationFilterShader
) -> &mut Self
[src]

Set a callback to be invoked on various simulation events. Note: Currently only handles collision events

Default: not set

pub fn use_controller_manager(
    &mut self,
    use_controller_manager: bool,
    locking_enabled: bool
) -> &mut Self
[src]

Enable the controller manager on the scene.

Default: false, false

pub fn set_call_default_filter_shader_first(
    &mut self,
    call_default_filter_shader_first: bool
) -> &mut Self
[src]

Sets whether the filter should begin by calling the default filter shader PxDefaultSimulationFilterShader that emulates the PhysX 2.8 rules.

Default: true

pub fn set_simulation_threading(
    &mut self,
    simulation_threading: SimulationThreadType
) -> &mut Self
[src]

Set the number of threads to use for simulation

Default: not set

pub fn set_broad_phase_type(
    &mut self,
    broad_phase_type: BroadPhaseType
) -> &mut Self
[src]

Set collision detection type

Default: Sweep and prune

pub fn set_use_ccd(
    &mut self,
    use_ccd: bool,
    enable_ccd_resweep: bool
) -> &mut Self
[src]

Set if CCD (continuous collision detection) should be available for use in the scene. Doesn't automatically enable it for all rigid bodies, they still need to be flagged.

If you don't set enable_ccd_resweep to true, eDISABLE_CCD_RESWEEP is set, which improves performance at the cost of accuracy right after bounces.

Default: false, false

Trait Implementations

impl Default for SceneBuilder[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> From<T> for T[src]

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

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.