Struct physx::physics::PhysicsFoundationBuilder
source · [−]pub struct PhysicsFoundationBuilder<Allocator: AllocatorCallback> { /* private fields */ }
Implementations
sourceimpl<Allocator: AllocatorCallback> PhysicsFoundationBuilder<Allocator>
impl<Allocator: AllocatorCallback> PhysicsFoundationBuilder<Allocator>
pub fn new(allocator: Allocator) -> Self
pub fn enable_visual_debugger(&mut self, enable: bool) -> &mut Self
sourcepub fn set_pvd_port(&mut self, pvd_port: i32) -> &mut Self
pub fn set_pvd_port(&mut self, pvd_port: i32) -> &mut Self
Set the port number for the visual debuggers transport. Default is 5425.
sourcepub fn set_pvd_host(&mut self, pvd_host: impl Into<String>) -> &mut Self
pub fn set_pvd_host(&mut self, pvd_host: impl Into<String>) -> &mut Self
Set the port number for the visual debuggers transport. Default is 5425.
sourcepub fn set_length_tolerance(&mut self, length: f32) -> &mut Self
pub fn set_length_tolerance(&mut self, length: f32) -> &mut Self
Set the tolerance scale for lengths in the simulation. This should be approximately the ratio between the scale of simulation and one meter. For example, if a regular simulation object is 1 centimeter 100 is a good scale here.
Default: 1.0
sourcepub fn set_speed_tolerance(&mut self, speed: f32) -> &mut Self
pub fn set_speed_tolerance(&mut self, speed: f32) -> &mut Self
Set the tolerance scale for speeds in the simulation. This should be approximately the magnitude of speeds of simulation objects.
Default: 1.0
sourcepub fn with_extensions(&mut self, load: bool) -> &mut Self
pub fn with_extensions(&mut self, load: bool) -> &mut Self
Enable or disable extensions. Default is false
.
pub fn with_error_callback<EC: ErrorCallback>(
&mut self,
error_callback: EC
) -> &mut Self
sourcepub fn build<Geom: Shape>(self) -> Option<PhysicsFoundation<Allocator, Geom>>
pub fn build<Geom: Shape>(self) -> Option<PhysicsFoundation<Allocator, Geom>>
Build the PhysicsFoundation.
Trait Implementations
Auto Trait Implementations
impl<Allocator> RefUnwindSafe for PhysicsFoundationBuilder<Allocator>where
Allocator: RefUnwindSafe,
impl<Allocator> !Send for PhysicsFoundationBuilder<Allocator>
impl<Allocator> !Sync for PhysicsFoundationBuilder<Allocator>
impl<Allocator> Unpin for PhysicsFoundationBuilder<Allocator>where
Allocator: Unpin,
impl<Allocator> UnwindSafe for PhysicsFoundationBuilder<Allocator>where
Allocator: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more