Trait physx::rigid_actor::RigidActor
source · [−]pub trait RigidActor: Class<PxRigidActor> + Actor {
type Shape: Shape;
Show 13 methods
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) { ... }
}
Required Associated Types
Provided Methods
fn get_nb_constraints(&self) -> u32
fn get_nb_constraints(&self) -> u32
Get the number of constraints on this rigid actor.
fn get_constraints(&mut self) -> Vec<&mut Constraint>
fn get_constraints(&mut self) -> Vec<&mut Constraint>
Get the constraints effecting this rigid actor.
fn 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.
fn get_global_position(&self) -> PxVec3
fn get_global_position(&self) -> PxVec3
Get the global pose of this rigid actor.
fn get_global_rotation(&self) -> PxQuat
fn get_global_rotation(&self) -> PxQuat
Get the global rotation of this rigid actor.
fn 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
fn get_nb_shapes(&self) -> u32
fn get_nb_shapes(&self) -> u32
Get number of attached shapes
fn get_shapes(&self) -> Vec<&Self::Shape>
fn get_shapes(&self) -> Vec<&Self::Shape>
Get a reference to every Shape attached to this actor.
fn 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.
fn 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.
fn 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.
fn attach_shape(&mut self, shape: &mut Self::Shape) -> bool
fn attach_shape(&mut self, shape: &mut Self::Shape) -> bool
Attach a shape.
fn detach_shape(&mut self, shape: &mut Self::Shape)
fn detach_shape(&mut self, shape: &mut Self::Shape)
Detach a shape.