pub struct CharacterMove {
pub translation: [f32; 3],
pub grounded: bool,
}Expand description
Result of moving a character capsule for one tick.
Fields§
§translation: [f32; 3]The translation actually applied after collision resolution.
grounded: boolTrue when the capsule is resting on a surface after the move.
Trait Implementations§
Source§impl Clone for CharacterMove
impl Clone for CharacterMove
Source§fn clone(&self) -> CharacterMove
fn clone(&self) -> CharacterMove
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 CharacterMove
Auto Trait Implementations§
impl Freeze for CharacterMove
impl RefUnwindSafe for CharacterMove
impl Send for CharacterMove
impl Sync for CharacterMove
impl Unpin for CharacterMove
impl UnsafeUnpin for CharacterMove
impl UnwindSafe for CharacterMove
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