pub struct CharacterMoveInput {
pub center: [f32; 3],
pub desired: [f32; 3],
pub dt: f32,
pub exclude: BodyHandle,
pub mask: LayerMask,
}Expand description
One character-capsule move request.
Fields§
§center: [f32; 3]World-space capsule centre before the move.
desired: [f32; 3]Desired translation for this tick.
dt: f32Seconds this move covers.
exclude: BodyHandleThe moving capsule’s own body, left out of the collision query.
mask: LayerMaskWhich layers the collision query considers.
Trait Implementations§
Source§impl Clone for CharacterMoveInput
impl Clone for CharacterMoveInput
Source§fn clone(&self) -> CharacterMoveInput
fn clone(&self) -> CharacterMoveInput
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 CharacterMoveInput
Auto Trait Implementations§
impl Freeze for CharacterMoveInput
impl RefUnwindSafe for CharacterMoveInput
impl Send for CharacterMoveInput
impl Sync for CharacterMoveInput
impl Unpin for CharacterMoveInput
impl UnsafeUnpin for CharacterMoveInput
impl UnwindSafe for CharacterMoveInput
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