Struct physx::physics::PhysicsFoundation[][src]

pub struct PhysicsFoundation<Allocator: AllocatorCallback, Geom: Shape> { /* fields omitted */ }

A PxPhysics, PxFoundation and optional PxPvd combined into one struct for ease of use. Parametrized by the Foundation's Allocator and the Physics' Shape type.

Implementations

impl<Allocator: AllocatorCallback, Geom: Shape> PhysicsFoundation<Allocator, Geom>[src]

pub fn new(allocator: Allocator) -> PhysicsFoundation<Allocator, Geom>[src]

pub fn physics(&self) -> &PxPhysics<Geom>[src]

pub fn foundation(&self) -> &PxFoundation<Allocator>[src]

pub fn pvd(&self) -> Option<&VisualDebugger>[src]

pub fn physics_mut(&mut self) -> &mut PxPhysics<Geom>[src]

pub fn foundation_mut(&mut self) -> &mut PxFoundation<Allocator>[src]

pub fn pvd_mut(&mut self) -> Option<&mut VisualDebugger>[src]

Trait Implementations

impl<T, Allocator: AllocatorCallback, Geom: Shape> Class<T> for PhysicsFoundation<Allocator, Geom> where
    PxPhysics: Class<T>, 
[src]

impl<Geom: Shape> Default for PhysicsFoundation<DefaultAllocator, Geom>[src]

impl<Allocator: AllocatorCallback, Geom: Shape> Drop for PhysicsFoundation<Allocator, Geom>[src]

impl<Allocator: AllocatorCallback, Geom: Shape> Physics for PhysicsFoundation<Allocator, Geom>[src]

type Shape = Geom

Auto Trait Implementations

impl<Allocator, Geom> RefUnwindSafe for PhysicsFoundation<Allocator, Geom> where
    Allocator: RefUnwindSafe,
    Geom: RefUnwindSafe

impl<Allocator, Geom> Send for PhysicsFoundation<Allocator, Geom> where
    Allocator: Send,
    Geom: Send

impl<Allocator, Geom> Sync for PhysicsFoundation<Allocator, Geom> where
    Allocator: Sync,
    Geom: Sync

impl<Allocator, Geom> Unpin for PhysicsFoundation<Allocator, Geom>

impl<Allocator, Geom> UnwindSafe for PhysicsFoundation<Allocator, Geom> where
    Allocator: RefUnwindSafe,
    Geom: RefUnwindSafe

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.