Struct physx::controller::PxCapsuleController
source · #[repr(transparent)]pub struct PxCapsuleController<U> { /* private fields */ }
Trait Implementations§
source§impl<U> CapsuleController for PxCapsuleController<U>
impl<U> CapsuleController for PxCapsuleController<U>
source§fn get_climbing_mode(&self) -> CapsuleClimbingMode
fn get_climbing_mode(&self) -> CapsuleClimbingMode
Get the climbing mode of the capsule controller.
source§fn get_height(&self) -> f32
fn get_height(&self) -> f32
Get the height of the capsule.
source§fn get_radius(&self) -> f32
fn get_radius(&self) -> f32
Get the radius of the capsule.
source§fn set_climbing_mode(&mut self, mode: CapsuleClimbingMode) -> bool
fn set_climbing_mode(&mut self, mode: CapsuleClimbingMode) -> bool
Set the climbing mode of the capsule controller.
source§fn set_height(&mut self, height: f32) -> bool
fn set_height(&mut self, height: f32) -> bool
Set the height of the capsule.
source§fn set_radius(&mut self, radius: f32) -> bool
fn set_radius(&mut self, radius: f32) -> bool
Set the radius of the capsule.
source§impl<T, U> Class<T> for PxCapsuleController<U>where
PxCapsuleController: Class<T>,
impl<T, U> Class<T> for PxCapsuleController<U>where PxCapsuleController: Class<T>,
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<U> Controller for PxCapsuleController<U>
impl<U> Controller for PxCapsuleController<U>
type UserData = U
type Descriptor = PxCapsuleControllerDesc<U>
source§fn get_user_data(&self) -> &Self::UserData
fn get_user_data(&self) -> &Self::UserData
Retrieve the user data from the controller.
source§fn set_user_data(&mut self, user_data: Self::UserData) -> &mut Self
fn set_user_data(&mut self, user_data: Self::UserData) -> &mut Self
Sets the controllers user data. If U is larger than a *mut _, it is heap allocated in a box.
Otherwise, it is packed directly into the *mut c_void userData field.
source§fn set_position(&mut self, position: impl Into<PxExtendedVec3>)
fn set_position(&mut self, position: impl Into<PxExtendedVec3>)
Set the position of teh controller
source§fn get_position(&self) -> PxVec3
fn get_position(&self) -> PxVec3
Get the position of the controller.