pub struct CharacterDescription {
pub radius: f32,
pub yaw_offset: f32,
pub turn_keep: f32,
pub blend: f32,
pub follow_speed: f32,
pub road_speed: f32,
pub type0_speed: f32,
pub fixed_height: bool,
pub height: f32,
pub min_height: f32,
}Expand description
A CharacterDescription: how a walking entity moves (its speeds and turning).
Original: FUN_14010f2a0; the defaults come from FUN_14010f3e0, and the character update and
MoveTo read it.
Original: FUN_14010e990, FUN_1400cda40.
Fields§
§radius: f32(default 0.25).
yaw_offset: f32Added to the heading when the model is turned (default 0).
turn_keep: f32Fraction of the remaining turn kept each update (default 0.85).
blend: f32Animation blend time passed to PlayAnimation (default 0.1).
follow_speed: f32Speed scale while following another character (default 1).
road_speed: f32Speed scale on cell types 1 and 9 (roads; default 1).
type0_speed: f32Speed scale on cell type 0 (default 1).
fixed_height: boolHold a fixed height instead of following the ground.
height: f32The fixed height.
min_height: f32Lowest height the ground clamp allows (default -10).
Trait Implementations§
Source§impl Clone for CharacterDescription
impl Clone for CharacterDescription
Source§fn clone(&self) -> CharacterDescription
fn clone(&self) -> CharacterDescription
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 CharacterDescription
Source§impl Debug for CharacterDescription
impl Debug for CharacterDescription
Source§impl Default for CharacterDescription
impl Default for CharacterDescription
Source§impl PartialEq for CharacterDescription
impl PartialEq for CharacterDescription
impl StructuralPartialEq for CharacterDescription
Auto Trait Implementations§
impl Freeze for CharacterDescription
impl RefUnwindSafe for CharacterDescription
impl Send for CharacterDescription
impl Sync for CharacterDescription
impl Unpin for CharacterDescription
impl UnsafeUnpin for CharacterDescription
impl UnwindSafe for CharacterDescription
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