[−][src]Enum hltas::types::VectorialStrafingConstraints
Constraints for the vectorial strafing algorithm.
Variants
Constrains the player yaw relative the velocity yaw.
Fields of VelocityYaw
tolerance: f32
The player's yaw should remain within velocity yaw ± tolerance degrees.
Constrains the player yaw relative the yaw of velocity averaged over last two frames.
Fields of AvgVelocityYaw
tolerance: f32
The player's yaw should remain within average velocity yaw ± tolerance degrees.
Constrains the player yaw to the velocity yaw, locking to the target strafing yaw.
When the velocity yaw rotates past the target strafing yaw (usually the frame bulk yaw), the constraint locks the player yaw to the target strafing yaw. When the target strafing yaw changes, the yaw is unlocked and follows the velocity yaw until the next time it reaches the target strafing yaw, and so on.
Fields of VelocityYawLocking
tolerance: f32
The player's yaw should remain within velocity yaw or target strafing yaw ± tolerance degrees.
Constrains the player yaw relative to the given yaw.
Fields of Yaw
Constrains the player yaw to the given range.
The range is in degrees, mod 360, inclusive from both sides. The order matters: from 10 to 350 results in a wide angle range, and from 350 to 10 results in a narrow angle range opposite to the first one.
Fields of YawRange
Trait Implementations
impl Clone for VectorialStrafingConstraints
[src]
fn clone(&self) -> VectorialStrafingConstraints
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VectorialStrafingConstraints
[src]
impl Debug for VectorialStrafingConstraints
[src]
impl PartialEq<VectorialStrafingConstraints> for VectorialStrafingConstraints
[src]
fn eq(&self, other: &VectorialStrafingConstraints) -> bool
[src]
fn ne(&self, other: &VectorialStrafingConstraints) -> bool
[src]
impl StructuralPartialEq for VectorialStrafingConstraints
[src]
Auto Trait Implementations
impl RefUnwindSafe for VectorialStrafingConstraints
impl Send for VectorialStrafingConstraints
impl Sync for VectorialStrafingConstraints
impl Unpin for VectorialStrafingConstraints
impl UnwindSafe for VectorialStrafingConstraints
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,