Skip to main content

CapsuleController

Trait CapsuleController 

Source
pub trait CapsuleController: Class<PxCapsuleController> + Controller {
    // Provided methods
    fn get_climbing_mode(&self) -> CapsuleClimbingMode { ... }
    fn get_height(&self) -> f32 { ... }
    fn get_radius(&self) -> f32 { ... }
    fn set_climbing_mode(&mut self, mode: CapsuleClimbingMode) -> bool { ... }
    fn set_height(&mut self, height: f32) -> bool { ... }
    fn set_radius(&mut self, radius: f32) -> bool { ... }
}

Provided Methods§

Source

fn get_climbing_mode(&self) -> CapsuleClimbingMode

Get the climbing mode of the capsule controller.

Source

fn get_height(&self) -> f32

Get the height of the capsule.

Source

fn get_radius(&self) -> f32

Get the radius of the capsule.

Source

fn set_climbing_mode(&mut self, mode: CapsuleClimbingMode) -> bool

Set the climbing mode of the capsule controller.

Source

fn set_height(&mut self, height: f32) -> bool

Set the height of the capsule.

Source

fn set_radius(&mut self, radius: f32) -> bool

Set the radius of the capsule.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§