Struct CharacterConfig
#[repr(C)]pub struct CharacterConfig {Show 13 fields
pub radius: f32,
pub height: f32,
pub crouch_height: f32,
pub max_step_height: f32,
pub max_slope_angle: f32,
pub walk_speed: f32,
pub run_speed: f32,
pub ground_accel: f32,
pub ground_decel: f32,
pub air_accel: f32,
pub jump_impulse: f32,
pub gravity: f32,
pub terminal_velocity: f32,
}Expand description
Character controller movement configuration.
Fields§
§radius: f32Capsule radius in meters.
height: f32Standing capsule height in meters.
crouch_height: f32Crouching capsule height in meters.
max_step_height: f32Maximum step-up height in meters.
max_slope_angle: f32Maximum traversable slope in radians (e.g., 0.785 rad ≈ 45°).
walk_speed: f32Walking speed in m/s.
run_speed: f32Sprinting speed in m/s.
ground_accel: f32Acceleration on ground in m/s².
ground_decel: f32Deceleration on ground in m/s².
air_accel: f32Air acceleration in m/s².
jump_impulse: f32Jump impulse velocity in m/s.
gravity: f32Gravity acceleration in m/s² (negative downward, e.g. -9.81).
terminal_velocity: f32Maximum downward fall speed in m/s.
Trait Implementations§
§impl Clone for CharacterConfig
impl Clone for CharacterConfig
§fn clone(&self) -> CharacterConfig
fn clone(&self) -> CharacterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CharacterConfig
§impl Debug for CharacterConfig
impl Debug for CharacterConfig
§impl Default for CharacterConfig
impl Default for CharacterConfig
§fn default() -> CharacterConfig
fn default() -> CharacterConfig
Returns the “default value” for a type. Read more
§impl PartialEq for CharacterConfig
impl PartialEq for CharacterConfig
impl StructuralPartialEq for CharacterConfig
Auto Trait Implementations§
impl Freeze for CharacterConfig
impl RefUnwindSafe for CharacterConfig
impl Send for CharacterConfig
impl Sync for CharacterConfig
impl Unpin for CharacterConfig
impl UnsafeUnpin for CharacterConfig
impl UnwindSafe for CharacterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more