Struct physx::controller::PxCapsuleController
source · [−]#[repr(transparent)]pub struct PxCapsuleController<U> { /* private fields */ }
Trait Implementations
sourceimpl<U> CapsuleController for PxCapsuleController<U>
impl<U> CapsuleController for PxCapsuleController<U>
sourcefn get_climbing_mode(&self) -> CapsuleClimbingMode
fn get_climbing_mode(&self) -> CapsuleClimbingMode
Get the climbing mode of the capsule controller.
sourcefn get_height(&self) -> f32
fn get_height(&self) -> f32
Get the height of the capsule.
sourcefn get_radius(&self) -> f32
fn get_radius(&self) -> f32
Get the radius of the capsule.
sourcefn 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.
sourcefn set_height(&mut self, height: f32) -> bool
fn set_height(&mut self, height: f32) -> bool
Set the height of the capsule.
sourcefn set_radius(&mut self, radius: f32) -> bool
fn set_radius(&mut self, radius: f32) -> bool
Set the radius of the capsule.
sourceimpl<T, U> Class<T> for PxCapsuleController<U>where
PxCapsuleController: Class<T>,
impl<T, U> Class<T> for PxCapsuleController<U>where
PxCapsuleController: Class<T>,
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl<U> Controller for PxCapsuleController<U>
impl<U> Controller for PxCapsuleController<U>
type UserData = U
type Descriptor = PxCapsuleControllerDesc<U>
sourcefn get_user_data(&self) -> &Self::UserData
fn get_user_data(&self) -> &Self::UserData
Retrieve the user data from the controller.
sourcefn 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. Read more
sourcefn set_position(&mut self, position: impl Into<PxExtendedVec3>)
fn set_position(&mut self, position: impl Into<PxExtendedVec3>)
Set the position of teh controller
sourcefn get_position(&self) -> PxVec3
fn get_position(&self) -> PxVec3
Get the position of the controller.
sourceimpl<U> Drop for PxCapsuleController<U>
impl<U> Drop for PxCapsuleController<U>
impl<U: Send> Send for PxCapsuleController<U>
impl<U: Sync> Sync for PxCapsuleController<U>
Auto Trait Implementations
impl<U> RefUnwindSafe for PxCapsuleController<U>where
U: RefUnwindSafe,
impl<U> Unpin for PxCapsuleController<U>where
U: Unpin,
impl<U> UnwindSafe for PxCapsuleController<U>where
U: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more