pub struct CharacterConfig {
pub radius: Fix128,
pub height: Fix128,
pub max_slope_angle: Fix128,
pub step_height: Fix128,
pub skin_width: Fix128,
pub ground_probe_distance: Fix128,
pub max_slides: usize,
pub push_force: Fix128,
}Expand description
Character controller configuration
Fields§
§radius: Fix128Capsule radius
height: Fix128Capsule total height (including hemispheres)
max_slope_angle: Fix128Maximum slope angle the character can walk on (radians)
step_height: Fix128Stair step height
skin_width: Fix128Skin width (small gap to prevent tunneling)
ground_probe_distance: Fix128Ground detection ray distance below feet
max_slides: usizeMaximum number of slide iterations
push_force: Fix128Push force applied to dynamic bodies on collision
Trait Implementations§
Source§impl Clone for CharacterConfig
impl Clone for CharacterConfig
impl Copy for CharacterConfig
Source§impl Debug for CharacterConfig
impl Debug for CharacterConfig
Source§impl Default for CharacterConfig
impl Default for CharacterConfig
impl Eq for CharacterConfig
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more