#[repr(transparent)]
pub struct PxBoxController<U> { /* private fields */ }

Trait Implementations§

source§

impl<U> BoxController for PxBoxController<U>

source§

fn get_half_forward_extent(&self) -> f32

Get the half forward extent.
source§

fn get_half_height(&self) -> f32

Get the half height.
source§

fn get_half_side_extent(&self) -> f32

Get the half side extent.
source§

fn set_half_forward_extent(&mut self, extent: f32) -> bool

Set the half forward extent.
source§

fn set_half_height(&mut self, height: f32) -> bool

Set the half height.
source§

fn set_half_side_extent(&mut self, extent: f32) -> bool

Set the half side extent.
source§

impl<T, U> Class<T> for PxBoxController<U>where PxBoxController: Class<T>,

source§

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

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 PxBoxController<U>

§

type UserData = U

§

type Descriptor = PxBoxControllerDesc<U>

source§

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

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>)

Set the position of teh controller
source§

fn get_position(&self) -> PxVec3

Get the position of the controller.
source§

impl<U> Drop for PxBoxController<U>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<U: Send> Send for PxBoxController<U>

source§

impl<U: Sync> Sync for PxBoxController<U>

Auto Trait Implementations§

§

impl<U> RefUnwindSafe for PxBoxController<U>where U: RefUnwindSafe,

§

impl<U> Unpin for PxBoxController<U>where U: Unpin,

§

impl<U> UnwindSafe for PxBoxController<U>where U: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.