[][src]Trait physx::controller_manager::ControllerManager

pub trait ControllerManager: Class<PxControllerManager> + Sized {
    type Controller: Controller;
    pub unsafe fn from_raw(ptr: *mut PxControllerManager) -> Option<Owner<Self>> { ... }
pub fn create_controller(
        &mut self,
        desc: Owner<<Self::Controller as Controller>::Descriptor>
    ) -> Option<&mut Self::Controller> { ... }
pub fn get_nb_controllers(&self) -> u32 { ... }
pub fn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller> { ... }
pub fn get_controllers(&mut self) -> Vec<&mut Self::Controller> { ... } }

Associated Types

Loading content...

Provided methods

pub unsafe fn from_raw(ptr: *mut PxControllerManager) -> Option<Owner<Self>>[src]

Safety

the pointee will be dropped when the Owner is dropped. Use into_ptr to retrieve the pointer from the Owner without dropping it.

pub fn create_controller(
    &mut self,
    desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller>
[src]

Create a controller.

pub fn get_nb_controllers(&self) -> u32[src]

Get the number of controllers currently being managed.

pub fn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller>[src]

Get a controller by index. Returns None

pub fn get_controllers(&mut self) -> Vec<&mut Self::Controller>[src]

Get a Vec of all the controllers being managed.

Loading content...

Implementors

impl<C: Controller> ControllerManager for PxControllerManager<C>[src]

type Controller = C

Loading content...