Trait physx::controller_manager::ControllerManager
source · [−]pub trait ControllerManager: Class<PxControllerManager> + Sized {
type Controller: Controller;
unsafe fn from_raw(ptr: *mut PxControllerManager) -> Option<Owner<Self>> { ... }
fn create_controller(
&mut self,
desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller> { ... }
fn get_nb_controllers(&self) -> u32 { ... }
fn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller> { ... }
fn get_controllers(&mut self) -> Vec<&mut Self::Controller> { ... }
}
Required Associated Types
type Controller: Controller
Provided Methods
sourceunsafe fn from_raw(ptr: *mut PxControllerManager) -> Option<Owner<Self>>
unsafe fn from_raw(ptr: *mut PxControllerManager) -> Option<Owner<Self>>
Safety
the pointee will be dropped when the Owner is dropped. Use into_ptr
to
retrieve the pointer from the Owner without dropping it.
sourcefn create_controller(
&mut self,
desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller>
fn create_controller(
&mut self,
desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller>
Create a controller.
sourcefn get_nb_controllers(&self) -> u32
fn get_nb_controllers(&self) -> u32
Get the number of controllers currently being managed.
sourcefn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller>
fn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller>
Get a controller by index. Returns None
sourcefn get_controllers(&mut self) -> Vec<&mut Self::Controller>
fn get_controllers(&mut self) -> Vec<&mut Self::Controller>
Get a Vec of all the controllers being managed.