Struct physxx::PxRigidBodyRef

source ·
pub struct PxRigidBodyRef(pub *mut PxRigidBody);

Tuple Fields§

§0: *mut PxRigidBody

Trait Implementations§

Auto Trait Implementations§

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> AsAny for Twhere T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

source§

fn type_name(&self) -> &'static str

Gets the type name of self
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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> PxActor for Twhere T: AsPxActor + 'static,

source§

fn set_name(&self, name: &CString)

Note; physx doesn’t copy the string, so the string needs to be kept alive somewhere else

source§

fn get_scene(&self) -> Option<PxSceneRef>

source§

fn set_actor_flag(&self, flag: PxActorFlag, value: bool)

source§

fn set_actor_flags(&self, flags: PxActorFlag)

source§

fn get_world_bounds(&self, inflation: f32) -> (Vec3, Vec3)

Returns an axis aligned bounding box (min, max)
source§

fn get_name(&self) -> String

source§

impl<T> PxBase for Twhere T: AsPxBase + 'static,

source§

impl<T> PxRigidActor for Twhere T: AsPxRigidActor + 'static,

source§

fn attach_shape(&self, shape: &PxShape) -> bool

source§

fn detach_shape(&self, shape: &PxShape, wake_on_lost_touch: bool)

source§

fn get_nb_shapes(&self) -> u32

source§

fn borrow_shapes(&self) -> Vec<PxShape, Global>

This returns a list of shapes, but it doesn’t increment the refcount for each shape. This means that the shapes cannot be stored, and will only be valid as long as the rigid actor is valid.
source§

fn get_shapes(&self) -> Vec<PxShape, Global>

source§

fn set_global_pose(&self, pose: &PxTransform, autowake: bool)

source§

fn get_global_pose(&self) -> PxTransform

source§

fn get_constraints(&self) -> Vec<PxConstraintRef, Global>

source§

fn release(self)

source§

impl<T> PxRigidBody for Twhere T: AsPxRigidBody + ?Sized,

source§

fn update_mass_and_inertia( &self, shape_densities: Vec<f32, Global>, mass_local_pose: Option<Vec3>, include_non_sim_shapes: Option<bool> ) -> bool

source§

fn update_mass_and_inertia_uniform( &self, density: f32, mass_local_pose: Option<Vec3>, include_non_sim_shapes: Option<bool> ) -> bool

source§

fn get_linear_velocity(&self) -> Vec3

source§

fn set_linear_velocity(&self, value: Vec3, autoawake: bool)

source§

fn get_angular_velocity(&self) -> Vec3

source§

fn set_angular_velocity(&self, value: Vec3, autoawake: bool)

source§

fn get_mass(&self) -> f32

source§

fn set_mass(&self, mass: f32)

source§

fn get_velocity_at_pos(&self, pos: Vec3) -> Vec3

source§

fn add_force( &self, force: Vec3, mode: Option<PxForceMode>, wakeup: Option<bool> )

source§

fn add_force_at_pos( &self, force: Vec3, pos: Vec3, mode: Option<PxForceMode>, wakeup: Option<bool> )

source§

fn get_rigid_body_flags(&self) -> PxRigidBodyFlag

source§

fn set_rigid_body_flag(&self, flag: PxRigidBodyFlag, value: bool)

source§

fn set_rigid_body_flags(&self, flags: PxRigidBodyFlag)

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
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.
source§

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

Performs the conversion.