pub enum StrafeDir {
Left,
Right,
Best,
Yaw(f32),
Point {
x: f32,
y: f32,
},
Line {
yaw: f32,
},
LeftRight(NonZeroU32),
RightLeft(NonZeroU32),
}
Expand description
Direction of automatic strafing.
Variants§
Left
Turn left.
Right
Turn right.
Best
Let the strafing type decide. Most useful with maximum decceleration.
Yaw(f32)
Strafe towards this yaw angle.
Point
Strafe towards this point.
Line
Strafe along a line.
LeftRight(NonZeroU32)
Alternate turning left and right for this number of frames each.
RightLeft(NonZeroU32)
Alternate turning right and left for this number of frames each.
Trait Implementations§
source§impl PartialEq<StrafeDir> for StrafeDir
impl PartialEq<StrafeDir> for StrafeDir
impl Copy for StrafeDir
impl StructuralPartialEq for StrafeDir
Auto Trait Implementations§
impl RefUnwindSafe for StrafeDir
impl Send for StrafeDir
impl Sync for StrafeDir
impl Unpin for StrafeDir
impl UnwindSafe for StrafeDir
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