pub trait Actor: Class<PxActor> + Base {
// Provided methods
fn get_type(&self) -> ActorType { ... }
fn get_world_bounds(&self, inflation: f32) -> PxBounds3 { ... }
fn set_actor_flag(&mut self, flag: ActorFlag, value: bool) { ... }
fn set_actor_flags(&mut self, flags: ActorFlags) { ... }
fn get_actor_flags(&self) -> ActorFlags { ... }
fn set_dominance_group(&mut self, group: u8) { ... }
fn get_dominance_group(&self) -> u8 { ... }
fn set_owner_client(&mut self, client: u8) { ... }
fn get_owner_client(&self) -> u8 { ... }
fn enable_visualization(&mut self, enable: bool) { ... }
fn enable_gravity(&mut self, enable: bool) { ... }
}
Provided Methods§
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: ActorFlags)
fn set_actor_flags(&mut self, flags: ActorFlags)
Set the flags to the provided value
sourcefn get_actor_flags(&self) -> ActorFlags
fn get_actor_flags(&self) -> ActorFlags
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