Struct physx::aggregate::PxAggregate
source · #[repr(transparent)]pub struct PxAggregate<L, S, D, C>where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
C: ArticulationReducedCoordinate,{ /* private fields */ }
Expand description
A collection of actors sharing a broad-phase entry.
Parametrized by the ArticulationLink, RigidStatic, RigidDynamic, and ArticulationReducedCoordinate types that it may contain.
Trait Implementations§
source§impl<L, S, D, C> Aggregate for PxAggregate<L, S, D, C>where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
C: ArticulationReducedCoordinate,
impl<L, S, D, C> Aggregate for PxAggregate<L, S, D, C>where L: ArticulationLink, S: RigidStatic, D: RigidDynamic, C: ArticulationReducedCoordinate,
type ActorMap = ActorMap<L, S, D>
type ArticulationLink = L
type RigidStatic = S
type RigidDynamic = D
type ArticulationReducedCoordinate = C
source§unsafe fn from_raw(ptr: *mut PxAggregate) -> Option<Owner<Self>>
unsafe fn from_raw(ptr: *mut PxAggregate) -> Option<Owner<Self>>
Create a new owning wrapper around a raw
physx_sys::PxAggregate
. Read moresource§fn add_articulation_link(
&mut self,
actor: &mut Self::ArticulationLink,
bvh: Option<&Bvh>
) -> bool
fn add_articulation_link( &mut self, actor: &mut Self::ArticulationLink, bvh: Option<&Bvh> ) -> bool
Add an actor to the aggregate.
source§fn add_rigid_static(
&mut self,
actor: &mut Self::RigidStatic,
bvh: Option<&Bvh>
) -> bool
fn add_rigid_static( &mut self, actor: &mut Self::RigidStatic, bvh: Option<&Bvh> ) -> bool
Add an actor to the aggregate.
source§fn add_rigid_dynamic(
&mut self,
actor: &mut Self::RigidDynamic,
bvh: Option<&Bvh>
) -> bool
fn add_rigid_dynamic( &mut self, actor: &mut Self::RigidDynamic, bvh: Option<&Bvh> ) -> bool
Add an actor to the aggregate.
source§fn add_articulation(
&mut self,
articulation: &mut Self::ArticulationReducedCoordinate
) -> bool
fn add_articulation( &mut self, articulation: &mut Self::ArticulationReducedCoordinate ) -> bool
Add an articulation to the aggregate.
source§fn add_articulation_reduced_coordinate(
&mut self,
articulation: &mut Self::ArticulationReducedCoordinate
) -> bool
fn add_articulation_reduced_coordinate( &mut self, articulation: &mut Self::ArticulationReducedCoordinate ) -> bool
Add an articulation to the aggregate.
source§fn get_actors(&mut self) -> Vec<&mut Self::ActorMap>
fn get_actors(&mut self) -> Vec<&mut Self::ActorMap>
Get a Vec of all the actors in the aggregate.
source§fn get_nb_actors(&self) -> u32
fn get_nb_actors(&self) -> u32
Returns the number of actors in the aggregate.
source§fn get_self_collision(&self) -> bool
fn get_self_collision(&self) -> bool
Returns whether the aggregate will collide with itself.
source§fn remove_actor(&mut self, actor: &mut impl Actor) -> bool
fn remove_actor(&mut self, actor: &mut impl Actor) -> bool
Remove an actor from the aggregate.
source§fn remove_articulation(
&mut self,
articulation: &mut Self::ArticulationReducedCoordinate
) -> bool
fn remove_articulation( &mut self, articulation: &mut Self::ArticulationReducedCoordinate ) -> bool
Remove an articulation from the aggregate.
source§impl<P, L, S, D, C> Class<P> for PxAggregate<L, S, D, C>where
PxAggregate: Class<P>,
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
C: ArticulationReducedCoordinate,
impl<P, L, S, D, C> Class<P> for PxAggregate<L, S, D, C>where PxAggregate: Class<P>, L: ArticulationLink, S: RigidStatic, D: RigidDynamic, C: ArticulationReducedCoordinate,
source§fn 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.
source§fn 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.
source§impl<L, S, D, C> Drop for PxAggregate<L, S, D, C>where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
C: ArticulationReducedCoordinate,
impl<L, S, D, C> Drop for PxAggregate<L, S, D, C>where L: ArticulationLink, S: RigidStatic, D: RigidDynamic, C: ArticulationReducedCoordinate,
impl<L, S, D, C> Send for PxAggregate<L, S, D, C>where L: ArticulationLink + Send, S: RigidStatic + Send, D: RigidDynamic + Send, C: ArticulationReducedCoordinate + Send,
impl<L, S, D, C> Sync for PxAggregate<L, S, D, C>where L: ArticulationLink + Sync, S: RigidStatic + Sync, D: RigidDynamic + Sync, C: ArticulationReducedCoordinate + Sync,
Auto Trait Implementations§
impl<L, S, D, C> RefUnwindSafe for PxAggregate<L, S, D, C>where C: RefUnwindSafe, D: RefUnwindSafe, L: RefUnwindSafe, S: RefUnwindSafe,
impl<L, S, D, C> Unpin for PxAggregate<L, S, D, C>
impl<L, S, D, C> UnwindSafe for PxAggregate<L, S, D, C>where C: RefUnwindSafe, D: RefUnwindSafe, L: RefUnwindSafe, S: RefUnwindSafe,
Blanket Implementations§
source§impl<T> Actor for Twhere
T: Class<PxActor> + Base,
impl<T> Actor for Twhere T: Class<PxActor> + Base,
source§fn get_world_bounds(&self, inflation: f32) -> PxBounds3
fn get_world_bounds(&self, inflation: f32) -> PxBounds3
Get the world bounds of this actor
source§fn 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
source§fn set_actor_flags(&mut self, flags: ActorFlags)
fn set_actor_flags(&mut self, flags: ActorFlags)
Set the flags to the provided value
source§fn get_actor_flags(&self) -> ActorFlags
fn get_actor_flags(&self) -> ActorFlags
Get all actor flags
source§fn set_dominance_group(&mut self, group: u8)
fn set_dominance_group(&mut self, group: u8)
Set the dominance group
source§fn get_dominance_group(&self) -> u8
fn get_dominance_group(&self) -> u8
Read the dominance group
source§fn set_owner_client(&mut self, client: u8)
fn set_owner_client(&mut self, client: u8)
Set the owner client of this actor
source§fn get_owner_client(&self) -> u8
fn get_owner_client(&self) -> u8
Read the owner client of this actor
source§fn enable_visualization(&mut self, enable: bool)
fn enable_visualization(&mut self, enable: bool)
Enable visualization of this actor
source§fn enable_gravity(&mut self, enable: bool)
fn enable_gravity(&mut self, enable: bool)
set gravity state
source§impl<T> Base for Twhere
T: Class<PxBase>,
impl<T> Base for Twhere T: Class<PxBase>,
source§fn 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
source§fn get_concrete_type(&self) -> ConcreteType
fn get_concrete_type(&self) -> ConcreteType
Returns an enumerated value identifying the type. Read more
source§fn 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.
source§fn set_base_flags(&mut self, in_flags: BaseFlags)
fn set_base_flags(&mut self, in_flags: BaseFlags)
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use
set_base_flag
to set individual flags.source§fn get_base_flags(&self) -> BaseFlags
fn get_base_flags(&self) -> BaseFlags
Read the BaseFlags of this object
source§fn is_releasable(&self) -> bool
fn is_releasable(&self) -> bool
Returns true if this object can be released, i.e., it is not subordinate.