#[non_exhaustive]pub struct F1PacketMotionEx {Show 25 fields
pub suspension_position: [f32; 4],
pub suspension_velocity: [f32; 4],
pub suspension_acceleration: [f32; 4],
pub wheel_speed: [f32; 4],
pub wheel_slip_ratio: [f32; 4],
pub wheel_slip_angle: [f32; 4],
pub wheel_lat_force: [f32; 4],
pub wheel_long_force: [f32; 4],
pub height_of_cog_above_ground: f32,
pub local_velocity_x: f32,
pub local_velocity_y: f32,
pub local_velocity_z: f32,
pub angular_velocity_x: f32,
pub angular_velocity_y: f32,
pub angular_velocity_z: f32,
pub angular_acceleration_x: f32,
pub angular_acceleration_y: f32,
pub angular_acceleration_z: f32,
pub front_wheels_angle: f32,
pub wheel_vert_force: [f32; 4],
pub front_aero_height: f32,
pub rear_aero_height: f32,
pub front_roll_angle: f32,
pub rear_roll_angle: f32,
pub chassis_yaw: f32,
}Expand description
Extended motion data for player’s car. Available as a:
- part of
F1PacketMotionin the 2022 format - standalone packet from the 2023 format onwards
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.suspension_position: [f32; 4]Positions of suspension for each wheel.
See wheel_index
for wheel order.
suspension_velocity: [f32; 4]Velocity values of suspension for each wheel.
See wheel_index
for wheel order.
suspension_acceleration: [f32; 4]Acceleration values of suspension for each wheel.
See wheel_index
for wheel order.
wheel_speed: [f32; 4]Speed of each wheel.
See wheel_index
for wheel order.
wheel_slip_ratio: [f32; 4]Slip ratio for each wheel.
See wheel_index
for wheel order.
wheel_slip_angle: [f32; 4]Slip angles for each wheel.
See wheel_index
for wheel order.
Available from the 2024 format onwards.
wheel_lat_force: [f32; 4]Lateral forces for each wheel.
See wheel_index
for wheel order.
Available from the 2024 format onwards.
wheel_long_force: [f32; 4]Longitudinal forces for each wheel.
See wheel_index
for wheel order.
Available from the 2024 format onwards.
height_of_cog_above_ground: f32Height of centre of gravity above ground. Available from the 2024 format onwards.
local_velocity_x: f32X velocity in local space.
local_velocity_y: f32Y velocity in local space.
local_velocity_z: f32Z velocity in local space.
angular_velocity_x: f32Angular velocity X component.
angular_velocity_y: f32Angular velocity Y component.
angular_velocity_z: f32Angular velocity Z component.
angular_acceleration_x: f32Angular acceleration X component.
angular_acceleration_y: f32Angular acceleration Y component.
angular_acceleration_z: f32Angular acceleration Z component.
front_wheels_angle: f32Current front wheels angle in radians.
wheel_vert_force: [f32; 4]Vertical forces for each wheel.
See wheel_index
for wheel order.
Available from the 2023 format onwards.
front_aero_height: f32Front plank edge height above road surface. Available from the 2024 format onwards.
rear_aero_height: f32Rear plank edge height above road surface. Available from the 2024 format onwards.
front_roll_angle: f32Roll angle of the front suspension. Available from the 2024 format onwards.
rear_roll_angle: f32Roll angle of the rear suspension. Available from the 2024 format onwards.
chassis_yaw: f32Yaw angle of the chassis relative to the direction of motion - radians. Available from the 2024 format onwards.
Trait Implementations§
Source§impl BinRead for F1PacketMotionEx
impl BinRead for F1PacketMotionEx
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for F1PacketMotionEx
impl Clone for F1PacketMotionEx
Source§fn clone(&self) -> F1PacketMotionEx
fn clone(&self) -> F1PacketMotionEx
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more