[][src]Struct physx::physics::Physics

pub struct Physics {
    pub physics: *mut PxPhysics,
    // some fields omitted
}

Fields

physics: *mut PxPhysics

Implementations

impl Physics[src]

pub fn create_multibody<T: FnOnce(&mut ArticulationReducedCoordinate)>(
    &mut self,
    scene: &mut Scene,
    func: T
) -> PartHandle
[src]

Create a new multibody

pub fn create_multibody_with_root<T: FnOnce(&mut ArticulationReducedCoordinate)>(
    &mut self,
    builder: &ArticulationLinkBuilder,
    scene: &mut Scene,
    cooking: &mut Cooking,
    func: T
) -> PartHandle
[src]

pub fn remove_body(&mut self, scene: &mut Scene, handle: BodyHandle)[src]

pub fn create_rigid_static(&mut self, transform: Mat4) -> RigidStatic[src]

pub unsafe fn create_dynamic(
    &mut self,
    transform: Mat4,
    geometry: *const PxGeometry,
    material: *mut PxMaterial,
    density: f32,
    shape_transform: Mat4
) -> RigidDynamic
[src]

pub unsafe fn create_static(
    &mut self,
    transform: Mat4,
    geometry: *const PxGeometry,
    material: *mut PxMaterial,
    shape_transform: Mat4
) -> RigidStatic
[src]

pub fn create_surface(&mut self) -> RigidStatic[src]

Create an infinite plane with a normal pointing up, at origin, with a rough standard material.

pub unsafe fn create_plane(
    &mut self,
    normal: Vec3,
    offset: f32,
    material: *mut PxMaterial
) -> RigidStatic
[src]

Create an infinite plane, parametrized by a normal, an offset, and a material of the surface.

pub fn get_tolerances_scale(&self) -> &PxTolerancesScale[src]

pub fn create_scene_raw(&mut self, scene_builder: &SceneBuilder) -> *mut PxScene[src]

Creates a raw *mut PxScene scene without a Scene wrapper. Useful for applications where the Scene wrapper isn't appropriate. Does not support the ControllerManager wrapper.

pub fn create_scene(&mut self, scene_builder: &SceneBuilder) -> Box<Scene>[src]

The recommended way to create a new scene.

pub fn get_physics_insertion_callback(
    &mut self
) -> *mut PxPhysicsInsertionCallback
[src]

pub fn create_material(
    &mut self,
    static_friction: f32,
    dynamic_friction: f32,
    restitution: f32
) -> *mut PxMaterial
[src]

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

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

Trait Implementations

impl Drop for Physics[src]

impl GetRaw<PxPhysics> for Physics[src]

fn get_raw(&self) -> *const PxPhysics[src]

Get a pointer to the underlying Physics object

fn get_raw_mut(&mut self) -> *mut PxPhysics[src]

Get a mutable pointer to the underlying Physics object

Auto Trait Implementations

impl RefUnwindSafe for Physics

impl !Send for Physics

impl !Sync for Physics

impl Unpin for Physics

impl UnwindSafe for Physics

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.