pub struct CharacterSettings {
pub radius: f32,
pub skin: f32,
pub ground_snap: f32,
pub step_height: f32,
pub min_ground_normal: f32,
pub max_iterations: u32,
}Expand description
A compact kinematic sphere controller, with positive Y as its up axis. The caller supplies displacement (including gravity) and owns velocity.
Fields§
§radius: f32§skin: f32§ground_snap: f32§step_height: f32§min_ground_normal: f32A surface is walkable if its upward normal component meets this value.
max_iterations: u32Trait Implementations§
Source§impl Clone for CharacterSettings
impl Clone for CharacterSettings
Source§fn clone(&self) -> CharacterSettings
fn clone(&self) -> CharacterSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharacterSettings
impl Debug for CharacterSettings
Source§impl Default for CharacterSettings
impl Default for CharacterSettings
Source§fn default() -> CharacterSettings
fn default() -> CharacterSettings
Returns the “default value” for a type. Read more
impl Copy for CharacterSettings
Auto Trait Implementations§
impl Freeze for CharacterSettings
impl RefUnwindSafe for CharacterSettings
impl Send for CharacterSettings
impl Sync for CharacterSettings
impl Unpin for CharacterSettings
impl UnwindSafe for CharacterSettings
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