Struct physx::rigid_static::PxRigidStatic
source · [−]#[repr(transparent)]pub struct PxRigidStatic<S, Geom: Shape> { /* private fields */ }
Expand description
A new type wrapper for PxArticulation. Parametrized by it’s user data type, and the type of it’s Shapes.
Trait Implementations
sourceimpl<P, S, Geom: Shape> Class<P> for PxRigidStatic<S, Geom>where
PxRigidStatic: Class<P>,
impl<P, S, Geom: Shape> Class<P> for PxRigidStatic<S, Geom>where
PxRigidStatic: Class<P>,
sourcefn as_ptr(&self) -> *const P
fn as_ptr(&self) -> *const P
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 P
fn as_mut_ptr(&mut self) -> *mut P
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<S, Geom: Shape> Drop for PxRigidStatic<S, Geom>
impl<S, Geom: Shape> Drop for PxRigidStatic<S, Geom>
sourceimpl<S, Geom: Shape> RigidActor for PxRigidStatic<S, Geom>
impl<S, Geom: Shape> RigidActor for PxRigidStatic<S, Geom>
type Shape = Geom
sourcefn get_nb_constraints(&self) -> u32
fn get_nb_constraints(&self) -> u32
Get the number of constraints on this rigid actor.
sourcefn get_constraints(&mut self) -> Vec<&mut Constraint>
fn get_constraints(&mut self) -> Vec<&mut Constraint>
Get the constraints effecting this rigid actor.
sourcefn get_global_pose(&self) -> PxTransform
fn get_global_pose(&self) -> PxTransform
Get the global pose of this rigid actor. The scale is implicitly 1.0.
sourcefn get_global_position(&self) -> PxVec3
fn get_global_position(&self) -> PxVec3
Get the global pose of this rigid actor.
sourcefn get_global_rotation(&self) -> PxQuat
fn get_global_rotation(&self) -> PxQuat
Get the global rotation of this rigid actor.
sourcefn set_global_pose(&mut self, pose: &PxTransform, autowake: bool)
fn set_global_pose(&mut self, pose: &PxTransform, autowake: bool)
Set the global pose of this rigid actor
sourcefn get_nb_shapes(&self) -> u32
fn get_nb_shapes(&self) -> u32
Get number of attached shapes
sourcefn get_shapes(&self) -> Vec<&Self::Shape>
fn get_shapes(&self) -> Vec<&Self::Shape>
Get a reference to every Shape attached to this actor.
sourcefn get_shapes_mut(&mut self) -> Vec<&mut Self::Shape>
fn get_shapes_mut(&mut self) -> Vec<&mut Self::Shape>
Get a mutable reference to every Shape attached to this actor.
sourcefn set_collision_filter(
&mut self,
this_layers: BitFlags<CollisionLayer>,
other_layers: BitFlags<CollisionLayer>,
word3: u32,
word4: u32
)
fn set_collision_filter(
&mut self,
this_layers: BitFlags<CollisionLayer>,
other_layers: BitFlags<CollisionLayer>,
word3: u32,
word4: u32
)
Set the collision filter. Collisions will only occur if this_layers & other_layers != 0.
sourcefn set_query_filter(&mut self, this_layers: BitFlags<CollisionLayer>)
fn set_query_filter(&mut self, this_layers: BitFlags<CollisionLayer>)
Set the query filter. Queries will only find this item if queried with one of the flags.
sourcefn attach_shape(&mut self, shape: &mut Self::Shape) -> bool
fn attach_shape(&mut self, shape: &mut Self::Shape) -> bool
Attach a shape.
sourcefn detach_shape(&mut self, shape: &mut Self::Shape)
fn detach_shape(&mut self, shape: &mut Self::Shape)
Detach a shape.
sourceimpl<S, Geom: Shape> RigidStatic for PxRigidStatic<S, Geom>
impl<S, Geom: Shape> RigidStatic for PxRigidStatic<S, Geom>
sourcefn new(
physics: &mut impl Physics,
transform: PxTransform,
geometry: &impl Class<PxGeometry>,
material: &mut <Self::Shape as Shape>::Material,
shape_transform: PxTransform,
user_data: Self::UserData
) -> Option<Owner<Self>>
fn new(
physics: &mut impl Physics,
transform: PxTransform,
geometry: &impl Class<PxGeometry>,
material: &mut <Self::Shape as Shape>::Material,
shape_transform: PxTransform,
user_data: Self::UserData
) -> Option<Owner<Self>>
Create a new RigidStatic.
sourceunsafe fn from_raw(
ptr: *mut PxRigidStatic,
user_data: Self::UserData
) -> Option<Owner<Self>>
unsafe fn from_raw(
ptr: *mut PxRigidStatic,
user_data: Self::UserData
) -> Option<Owner<Self>>
Safety Read more
sourcefn get_user_data(&self) -> &Self::UserData
fn get_user_data(&self) -> &Self::UserData
Get the user data.
sourcefn get_user_data_mut(&mut self) -> &mut Self::UserData
fn get_user_data_mut(&mut self) -> &mut Self::UserData
Get the user data.
sourcefn get_concrete_type_name(&self) -> Option<&str>
fn get_concrete_type_name(&self) -> Option<&str>
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
impl<S: Send, Geom: Shape + Send> Send for PxRigidStatic<S, Geom>
impl<S: Sync, Geom: Shape + Sync> Sync for PxRigidStatic<S, Geom>
Auto Trait Implementations
impl<S, Geom> RefUnwindSafe for PxRigidStatic<S, Geom>where
Geom: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, Geom> Unpin for PxRigidStatic<S, Geom>where
Geom: Unpin,
S: Unpin,
impl<S, Geom> UnwindSafe for PxRigidStatic<S, Geom>where
Geom: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> Actor for Twhere
T: Class<PxActor> + Base,
impl<T> Actor for Twhere
T: Class<PxActor> + Base,
sourcefn get_world_bounds(&self, inflation: f32) -> PxBounds3
fn get_world_bounds(&self, inflation: f32) -> PxBounds3
Get the world bounds of this actor
sourcefn set_actor_flag(&mut self, flag: ActorFlag, value: bool)
fn set_actor_flag(&mut self, flag: ActorFlag, value: bool)
Set a flag on this actor
sourcefn set_actor_flags(&mut self, flags: BitFlags<ActorFlag>)
fn set_actor_flags(&mut self, flags: BitFlags<ActorFlag>)
Set the flags to the provided value
sourcefn get_actor_flags(&self) -> BitFlags<ActorFlag>
fn get_actor_flags(&self) -> BitFlags<ActorFlag>
Get all actor flags
sourcefn set_dominance_group(&mut self, group: u8)
fn set_dominance_group(&mut self, group: u8)
Set the dominance group
sourcefn get_dominance_group(&self) -> u8
fn get_dominance_group(&self) -> u8
Read the dominance group
sourcefn set_owner_client(&mut self, client: u8)
fn set_owner_client(&mut self, client: u8)
Set the owner client of this actor
sourcefn get_owner_client(&self) -> u8
fn get_owner_client(&self) -> u8
Read the owner client of this actor
sourcefn enable_visualization(&mut self, enable: bool)
fn enable_visualization(&mut self, enable: bool)
Enable visualization of this actor
sourcefn enable_gravity(&mut self, enable: bool)
fn enable_gravity(&mut self, enable: bool)
set gravity state
sourceimpl<T> Base for Twhere
T: Class<PxBase>,
impl<T> Base for Twhere
T: Class<PxBase>,
sourcefn get_concrete_type_name(&self) -> Option<&str>
fn get_concrete_type_name(&self) -> Option<&str>
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
sourcefn get_concrete_type(&self) -> ConcreteType
fn get_concrete_type(&self) -> ConcreteType
Returns an enumerated value identifying the type. This may return ConcreteType::Undefined
in surprising situations, notably this does not seem to work with
get_active_actors
. Use
get_type
for actors if possible. Read moresourcefn set_base_flag(&mut self, flag: BaseFlag, value: bool)
fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
Set or unset the specified flag on this object.
sourcefn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
fn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use
set_base_flag
to set individual flags. Read moresourcefn get_base_flags(&self) -> BitFlags<BaseFlag>
fn get_base_flags(&self) -> BitFlags<BaseFlag>
Read the BaseFlags of this object
sourcefn is_releasable(&self) -> bool
fn is_releasable(&self) -> bool
Returns true if this object can be released, i.e., it is not subordinate.
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