Trait physx::actor::Actor

source ·
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§

source

fn get_type(&self) -> ActorType

Get the concrete type of the actor

source

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)

Set a flag on this actor

source

fn set_actor_flags(&mut self, flags: ActorFlags)

Set the flags to the provided value

source

fn get_actor_flags(&self) -> ActorFlags

Get all actor flags

source

fn set_dominance_group(&mut self, group: u8)

Set the dominance group

source

fn get_dominance_group(&self) -> u8

Read the dominance group

source

fn set_owner_client(&mut self, client: u8)

Set the owner client of this actor

source

fn get_owner_client(&self) -> u8

Read the owner client of this actor

source

fn enable_visualization(&mut self, enable: bool)

Enable visualization of this actor

source

fn enable_gravity(&mut self, enable: bool)

set gravity state

Implementors§

source§

impl<T> Actor for Twhere T: Class<PxActor> + Base,