[][src]Struct physx::scene::Scene

pub struct Scene { /* fields omitted */ }

Implementations

impl Scene[src]

pub fn new(scene: *mut PxScene) -> Self[src]

pub unsafe fn release(&mut self)[src]

pub fn get_pvd_client(&self) -> PvdSceneClient[src]

Get the visual debugger client

pub fn add_capsule_controller(
    &mut self,
    desc: &CapsuleControllerDesc
) -> Result<Controller, ControllerError>
[src]

pub fn add_actor(&mut self, actor: RigidStatic) -> BodyHandle[src]

pub fn add_dynamic(&mut self, actor: RigidDynamic) -> BodyHandle[src]

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

Add a multibody articulation to the world TODO: Make this take a boxed-trait object or similar instead

pub fn remove_articulation(&mut self, handle: BodyHandle)[src]

Remove an articulation from the world

pub fn simulate(&mut self, duration: f32)[src]

pub fn fetch_results(&mut self, block: bool) -> Result<(), u32>[src]

pub fn get_multibody(
    &self,
    handle: BodyHandle
) -> Option<&ArticulationReducedCoordinate>
[src]

pub fn get_multibody_mut(
    &mut self,
    handle: BodyHandle
) -> Option<&mut ArticulationReducedCoordinate>
[src]

pub fn sample_height(
    &self,
    position: Vec3,
    ignored: Option<&RigidActor>,
    ignore_dynamic: bool
) -> Option<Vec3>
[src]

pub fn set_simulation_event_callback<T>(
    &mut self,
    callback: CollisionCallback,
    userdata: *mut T
)
[src]

👎 Deprecated

pub fn set_simulation_event_callbacks(
    &mut self,
    callbacks: &SimulationEventCallbackInfo
)
[src]

pub fn get_static(&self, handle: BodyHandle) -> Option<&RigidStatic>[src]

Lookup and retrieve a RigidStatic reference for this handle

pub fn get_static_mut(&mut self, handle: BodyHandle) -> Option<&mut RigidStatic>[src]

Lookup and retrieve a RigidStatic reference for this handle

pub fn get_dynamic(&self, handle: BodyHandle) -> Option<&RigidDynamic>[src]

Lookup and retrieve a RigidDynamic reference for this handle

pub fn get_dynamic_mut(
    &mut self,
    handle: BodyHandle
) -> Option<&mut RigidDynamic>
[src]

Lookup and retrieve a RigidDynamic reference for this handle

pub fn get_rigid_actor(&self, handle: BodyHandle) -> Option<&RigidActor>[src]

Lookup and retrieve a RigidActor reference for this handle

pub unsafe fn get_rigid_actor_unchecked(
    &self,
    handle: &BodyHandle
) -> &RigidActor
[src]

Retrieve a RigidActor based on the bodyhandle. Note: This API is unsafe and bypasses a lot of safety checks for lifetimes and ownership.

pub fn find_matching_rigid_actor_mut(
    &mut self,
    actor: *const PxRigidActor
) -> Option<&mut RigidActor>
[src]

pub fn collide_raw_pair(
    &mut self,
    first_px_actor: *mut PxRigidActor,
    second_px_actor: *mut PxRigidActor,
    pairs: &[PxContactPair]
)
[src]

Looking

pub fn get_bodies(&self) -> &Vec<ArticulationReducedCoordinate>[src]

pub fn step(&mut self, step: f32, block: bool)[src]

Auto Trait Implementations

impl RefUnwindSafe for Scene

impl !Send for Scene

impl !Sync for Scene

impl Unpin for Scene

impl UnwindSafe for Scene

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.