Struct physx::controller_manager::PxControllerManager
source · #[repr(transparent)]pub struct PxControllerManager<C>where
C: Controller,{ /* private fields */ }
Trait Implementations§
source§impl<T, C> Class<T> for PxControllerManager<C>where
PxControllerManager: Class<T>,
C: Controller,
impl<T, C> Class<T> for PxControllerManager<C>where PxControllerManager: Class<T>, C: Controller,
source§fn as_ptr(&self) -> *const T
fn as_ptr(&self) -> *const T
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§fn as_mut_ptr(&mut self) -> *mut T
fn as_mut_ptr(&mut self) -> *mut T
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§impl<C: Controller> ControllerManager for PxControllerManager<C>
impl<C: Controller> ControllerManager for PxControllerManager<C>
type Controller = C
source§fn 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.
source§fn get_nb_controllers(&self) -> u32
fn get_nb_controllers(&self) -> u32
Get the number of controllers currently being managed.
source§fn 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
source§fn 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.