Trait physx::rigid_actor::RigidActor[][src]

pub trait RigidActor: Class<PxRigidActor> + Actor {
    type Shape: Shape;
    fn get_nb_constraints(&self) -> u32 { ... }
fn get_constraints(&mut self) -> Vec<&mut Constraint> { ... }
fn get_global_pose(&self) -> PxTransform { ... }
fn get_global_position(&self) -> PxVec3 { ... }
fn get_global_rotation(&self) -> PxQuat { ... }
fn set_global_pose(&mut self, pose: &PxTransform, autowake: bool) { ... }
fn get_nb_shapes(&self) -> u32 { ... }
fn get_shapes(&self) -> Vec<&Self::Shape> { ... }
fn get_shapes_mut(&mut self) -> Vec<&mut Self::Shape> { ... }
fn set_collision_filter(
        &mut self,
        this_layers: BitFlags<CollisionLayer>,
        other_layers: BitFlags<CollisionLayer>,
        word3: u32,
        word4: u32
    ) { ... }
fn set_query_filter(&mut self, this_layers: BitFlags<CollisionLayer>) { ... }
fn attach_shape(&mut self, shape: &mut Self::Shape) -> bool { ... }
fn detach_shape(&mut self, shape: &mut Self::Shape) { ... } }

Associated Types

Loading content...

Provided methods

fn get_nb_constraints(&self) -> u32[src]

Get the number of constraints on this rigid actor.

fn get_constraints(&mut self) -> Vec<&mut Constraint>[src]

Get the constraints effecting this rigid actor.

fn get_global_pose(&self) -> PxTransform[src]

Get the global pose of this rigid actor. The scale is implicitly 1.0.

fn get_global_position(&self) -> PxVec3[src]

Get the global pose of this rigid actor.

fn get_global_rotation(&self) -> PxQuat[src]

Get the global rotation of this rigid actor.

fn set_global_pose(&mut self, pose: &PxTransform, autowake: bool)[src]

Set the global pose of this rigid actor

fn get_nb_shapes(&self) -> u32[src]

Get number of attached shapes

fn get_shapes(&self) -> Vec<&Self::Shape>[src]

Get a reference to every Shape attached to this actor.

fn get_shapes_mut(&mut self) -> Vec<&mut Self::Shape>[src]

Get a mutable reference to every Shape attached to this actor.

fn set_collision_filter(
    &mut self,
    this_layers: BitFlags<CollisionLayer>,
    other_layers: BitFlags<CollisionLayer>,
    word3: u32,
    word4: u32
)
[src]

Set the collision filter. Collisions will only occur if this_layers & other_layers != 0.

fn set_query_filter(&mut self, this_layers: BitFlags<CollisionLayer>)[src]

Set the query filter. Queries will only find this item if queried with one of the flags.

fn attach_shape(&mut self, shape: &mut Self::Shape) -> bool[src]

Attach a shape.

fn detach_shape(&mut self, shape: &mut Self::Shape)[src]

Detach a shape.

Loading content...

Implementors

impl<D, Geom: Shape> RigidActor for PxRigidDynamic<D, Geom>[src]

type Shape = Geom

impl<L, Geom: Shape> RigidActor for PxArticulationLink<L, Geom>[src]

type Shape = Geom

impl<L, S, D> RigidActor for ActorMap<L, S, D> where
    L: ArticulationLink,
    S: RigidStatic,
    D: RigidDynamic
[src]

type Shape = L::Shape

impl<S, Geom: Shape> RigidActor for PxRigidStatic<S, Geom>[src]

type Shape = Geom

Loading content...