[−][src]Struct physx::physics::PhysicsFoundationBuilder
Implementations
impl<Allocator: AllocatorCallback> PhysicsFoundationBuilder<Allocator>
[src]
pub fn new(allocator: Allocator) -> Self
[src]
pub fn enable_visual_debugger(&mut self, enable: bool) -> &mut Self
[src]
pub fn set_pvd_port(&mut self, pvd_port: i32) -> &mut Self
[src]
Set the port number for the visual debuggers transport. Default is 5425.
pub fn set_length_tolerance(&mut self, length: f32) -> &mut Self
[src]
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
pub fn set_speed_tolerance(&mut self, speed: f32) -> &mut Self
[src]
Set the tolerance scale for speeds in the simulation. This should be approximately the magnitude of speeds of simulation objects.
Default: 1.0
pub fn with_extensions(&mut self, load: bool) -> &mut Self
[src]
Enable or disable extensions. Default is false
.
pub fn build<Geom: Shape>(self) -> Option<PhysicsFoundation<Allocator, Geom>>
[src]
Build the PhysicsFoundation.
Trait Implementations
Auto Trait Implementations
impl<Allocator> RefUnwindSafe for PhysicsFoundationBuilder<Allocator> where
Allocator: RefUnwindSafe,
[src]
Allocator: RefUnwindSafe,
impl<Allocator> Send for PhysicsFoundationBuilder<Allocator> where
Allocator: Send,
[src]
Allocator: Send,
impl<Allocator> Sync for PhysicsFoundationBuilder<Allocator> where
Allocator: Sync,
[src]
Allocator: Sync,
impl<Allocator> Unpin for PhysicsFoundationBuilder<Allocator> where
Allocator: Unpin,
[src]
Allocator: Unpin,
impl<Allocator> UnwindSafe for PhysicsFoundationBuilder<Allocator> where
Allocator: UnwindSafe,
[src]
Allocator: UnwindSafe,
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>,