[−][src]Struct physx::scene::SceneBuilder
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]
&mut self,
simulation_filter_shader: SimulationFilterShader
) -> &mut Self
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]
&mut self,
use_controller_manager: bool,
locking_enabled: bool
) -> &mut Self
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]
&mut self,
call_default_filter_shader_first: bool
) -> &mut Self
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]
&mut self,
simulation_threading: SimulationThreadType
) -> &mut Self
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]
&mut self,
broad_phase_type: BroadPhaseType
) -> &mut Self
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]
&mut self,
use_ccd: bool,
enable_ccd_resweep: bool
) -> &mut Self
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
pub fn set_ccd_max_passes(&mut self, ccd_max_passes: usize) -> &mut Self
[src]
Maximum number of CCD passes.
Default: 1
pub fn set_solver_type(&mut self, solver_type: SolverType) -> &mut Self
[src]
Set solver type
Default: PGS
pub fn set_enhanced_determinism(
&mut self,
enhanced_determinism: bool
) -> &mut Self
[src]
&mut self,
enhanced_determinism: bool
) -> &mut Self
Set to enable enhanced determinism flag
Default: false
pub fn set_friction_every_iteration(
&mut self,
friction_every_iteration: bool
) -> &mut Self
[src]
&mut self,
friction_every_iteration: bool
) -> &mut Self
Set to evaluate friction every iteration instead of only in the final 3 position iterations
Default: false
pub fn set_stabilization(&mut self, stabilization: bool) -> &mut Self
[src]
Set to enable an additional stabilization pass in the solver.
Default: false
pub fn set_adaptive_force(&mut self, adaptive_force: bool) -> &mut Self
[src]
Set to enable adaptive force to accelerate convergence of the solver
Default: false
Trait Implementations
impl Default for SceneBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for SceneBuilder
impl !Send for SceneBuilder
impl !Sync for SceneBuilder
impl Unpin for SceneBuilder
impl UnwindSafe for SceneBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,