pub struct DodgeRotation {
pub onset_pitch_rate: f32,
pub onset_roll_rate: f32,
pub onset_yaw_rate: f32,
pub min_forward_z: f32,
pub max_forward_deviation_degrees: f32,
pub max_up_deviation_degrees: f32,
pub min_up_z: f32,
pub sample_count: u32,
}Expand description
Orientation-trajectory features of a dodge, measured from the car’s rotation over a window after onset — independent of the (noisy) velocity impulse.
These are the signals we actually classify a dodge on:
- forwardness — the onset flip rotation: pitch (about the right axis)
means a forward/back dodge, roll (about the forward axis) means a side
dodge. Plus
min_forward_z, how far the nose pitched down. - cancel —
max_forward_deviation_degrees: how far the nose swung from where it pointed at onset. Small = the nose was held forward (a speed flip’s cancel); large = the flip pitched the nose all the way over (a front/diagonal flip). Roll-invariant, so a side roll does not inflate it. - inversion —
max_up_deviation_degrees/min_up_z: did the car roll past horizontal / go upside down (a flip’s air-roll), or stay upright (a wavedash).
Fields§
§onset_pitch_rate: f32Body-frame angular velocity at dodge onset (the commanded flip): pitch is rotation about the right axis, roll about the forward axis, yaw about up. Signs are raw; the labeled corpus fixes their interpretation.
onset_roll_rate: f32§onset_yaw_rate: f32§min_forward_z: f32Lowest world-z reached by the nose (forward vector): 0 = level, negative = the nose pitched down. A forward dodge dips it; a side dodge barely does.
max_forward_deviation_degrees: f32Max angle (deg) the nose swung from its onset direction over the window.
max_up_deviation_degrees: f32Max angle (deg) the up-vector swung from its onset direction over the window (roll / inversion magnitude).
min_up_z: f32Lowest world-z reached by the up-vector: 1 = upright, 0 = on its side, negative = (at least partly) inverted.
sample_count: u32Trait Implementations§
Source§impl Clone for DodgeRotation
impl Clone for DodgeRotation
Source§impl Debug for DodgeRotation
impl Debug for DodgeRotation
Source§impl PartialEq for DodgeRotation
impl PartialEq for DodgeRotation
Source§impl Serialize for DodgeRotation
impl Serialize for DodgeRotation
impl StructuralPartialEq for DodgeRotation
Source§impl TS for DodgeRotation
impl TS for DodgeRotation
Source§type WithoutGenerics = DodgeRotation
type WithoutGenerics = DodgeRotation
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or ().
The only requirement for these dummy types is that EXPORT_TO must be None. Read moreSource§type OptionInnerType = DodgeRotation
type OptionInnerType = DodgeRotation
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete() -> String
fn decl_concrete() -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl() -> String
fn decl() -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline() -> String
fn inline() -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened() -> String
fn inline_flattened() -> String
This function will panic if the type cannot be flattened.
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported.The returned path does not include the base directory from
TS_RS_EXPORT_DIR. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
Source§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all() -> Result<(), ExportError>where
Self: 'static,
fn export_all() -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use
TS::export. Read moreSource§fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use
TS::export. Read more