pub struct TouchEvent {
pub touch_id: Option<u64>,
pub time: f32,
pub frame: usize,
pub team_is_team_0: bool,
pub player: Option<PlayerId>,
pub player_position: Option<Vector3f>,
pub closest_approach_distance: Option<f32>,
pub contact_local_ball_position: Option<[f32; 3]>,
pub contact_local_hitbox_point: Option<[f32; 3]>,
pub contact_world_hitbox_point: Option<[f32; 3]>,
pub dodge_contact: bool,
}Fields§
§touch_id: Option<u64>Stable identity for an attributed touch, assigned monotonically when the
stats pipeline confirms the touch. None for raw replay team markers,
which exist before attribution. Downstream events that reference a touch
carry this id so consumers can join exactly instead of matching on
player + frame.
time: f32§frame: usize§team_is_team_0: bool§player: Option<PlayerId>§player_position: Option<Vector3f>§closest_approach_distance: Option<f32>Ball-to-car hitbox contact gap in uu for attributed touches, when estimated.
This field keeps its historical name for wire compatibility. A value of
0.0 means the ball intersects or touches the oriented car hitbox after
subtracting the Rocket League ball collision radius.
contact_local_ball_position: Option<[f32; 3]>Ball center in the car’s local hitbox coordinates at the attributed touch.
contact_local_hitbox_point: Option<[f32; 3]>Closest point on the car hitbox to the ball center, in local hitbox coordinates.
contact_world_hitbox_point: Option<[f32; 3]>Closest point on the car hitbox to the ball center, in field coordinates.
dodge_contact: boolTrait Implementations§
Source§impl Clone for TouchEvent
impl Clone for TouchEvent
Source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
Source§fn eq(&self, other: &TouchEvent) -> bool
fn eq(&self, other: &TouchEvent) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for TouchEvent
impl Serialize for TouchEvent
impl StructuralPartialEq for TouchEvent
Source§impl TS for TouchEvent
impl TS for TouchEvent
Source§type WithoutGenerics = TouchEvent
type WithoutGenerics = TouchEvent
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 = TouchEvent
type OptionInnerType = TouchEvent
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 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 docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§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