[][src]Trait physx::aggregate::Aggregate

pub trait Aggregate: Class<PxAggregate> + Base {
    type ActorMap: RigidActor;
    type ArticulationLink: ArticulationLink;
    type RigidStatic: RigidStatic;
    type RigidDynamic: RigidDynamic;
    type Articulation: Articulation;
    type ArticulationReducedCoordinate: ArticulationReducedCoordinate;
    pub unsafe fn from_raw(ptr: *mut PxAggregate) -> Option<Owner<Self>> { ... }
pub fn add_articulation_link(
        &mut self,
        actor: &mut Self::ArticulationLink,
        bvh: Option<&BVHStructure>
    ) -> bool { ... }
pub fn add_rigid_static(
        &mut self,
        actor: &mut Self::RigidStatic,
        bvh: Option<&BVHStructure>
    ) -> bool { ... }
pub fn add_rigid_dynamic(
        &mut self,
        actor: &mut Self::RigidDynamic,
        bvh: Option<&BVHStructure>
    ) -> bool { ... }
pub fn add_articulation(
        &mut self,
        articulation: &mut Self::Articulation
    ) -> bool { ... }
pub fn add_articulation_reduced_coordinate(
        &mut self,
        articulation: &mut Self::ArticulationReducedCoordinate
    ) -> bool { ... }
pub fn get_actors(&mut self) -> Vec<&mut Self::ActorMap> { ... }
pub fn get_max_nb_actors(&self) -> u32 { ... }
pub fn get_nb_actors(&self) -> u32 { ... }
pub fn get_self_collision(&self) -> bool { ... }
pub fn remove_actor(&mut self, actor: &mut impl Actor) -> bool { ... }
pub fn remove_articulation(
        &mut self,
        articulation: &mut impl ArticulationBase
    ) -> bool { ... } }

Associated Types

Loading content...

Provided methods

pub unsafe fn from_raw(ptr: *mut PxAggregate) -> Option<Owner<Self>>[src]

Create a new owning wrapper around a raw physx_sys::PxAggregate.

Safety

Owner's own the pointer they wrap, using the pointer after dropping the Owner, or creating multiple Owners from the same pointer will cause UB. Use into_ptr to retrieve the pointer and consume the Owner without dropping the pointee.

Add an actor to the aggregate.

pub fn add_rigid_static(
    &mut self,
    actor: &mut Self::RigidStatic,
    bvh: Option<&BVHStructure>
) -> bool
[src]

Add an actor to the aggregate.

pub fn add_rigid_dynamic(
    &mut self,
    actor: &mut Self::RigidDynamic,
    bvh: Option<&BVHStructure>
) -> bool
[src]

Add an actor to the aggregate.

pub fn add_articulation(
    &mut self,
    articulation: &mut Self::Articulation
) -> bool
[src]

Add an articulation to the aggregate.

pub fn add_articulation_reduced_coordinate(
    &mut self,
    articulation: &mut Self::ArticulationReducedCoordinate
) -> bool
[src]

Add an articulation to the aggregate.

pub fn get_actors(&mut self) -> Vec<&mut Self::ActorMap>[src]

Get a Vec of all the actors in the aggregate.

pub fn get_max_nb_actors(&self) -> u32[src]

Return the maximum possible number of actors in the aggregate.

pub fn get_nb_actors(&self) -> u32[src]

Returns the number of actors in the aggregate.

pub fn get_self_collision(&self) -> bool[src]

Returns whether the aggregate will collide with itself.

pub fn remove_actor(&mut self, actor: &mut impl Actor) -> bool[src]

Remove an actor from the aggregate.

pub fn remove_articulation(
    &mut self,
    articulation: &mut impl ArticulationBase
) -> bool
[src]

Remove an articulation from the aggregate.

Loading content...

Implementors

impl<L, S, D, T, C> Aggregate for PxAggregate<L, S, D, T, C> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic,
    T: Articulation,
    C: ArticulationReducedCoordinate
[src]

Loading content...