[][src]Struct physx::physics::PhysicsFoundationBuilder

pub struct PhysicsFoundationBuilder<Allocator: AllocatorCallback> { /* fields omitted */ }

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

impl Default for PhysicsFoundationBuilder<DefaultAllocator>[src]

Auto Trait Implementations

impl<Allocator> RefUnwindSafe for PhysicsFoundationBuilder<Allocator> where
    Allocator: RefUnwindSafe
[src]

impl<Allocator> Send for PhysicsFoundationBuilder<Allocator> where
    Allocator: Send
[src]

impl<Allocator> Sync for PhysicsFoundationBuilder<Allocator> where
    Allocator: Sync
[src]

impl<Allocator> Unpin for PhysicsFoundationBuilder<Allocator> where
    Allocator: Unpin
[src]

impl<Allocator> UnwindSafe for PhysicsFoundationBuilder<Allocator> where
    Allocator: UnwindSafe
[src]

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.