pub struct CarMotionData {Show 18 fields
pub world_position_x: f32,
pub world_position_y: f32,
pub world_position_z: f32,
pub world_velocity_x: f32,
pub world_velocity_y: f32,
pub world_velocity_z: f32,
pub world_forward_dir_x: i16,
pub world_forward_dir_y: i16,
pub world_forward_dir_z: i16,
pub world_right_dir_x: i16,
pub world_right_dir_y: i16,
pub world_right_dir_z: i16,
pub g_force_lateral: f32,
pub g_force_longitudinal: f32,
pub g_force_vertical: f32,
pub yaw: f32,
pub pitch: f32,
pub roll: f32,
}Fields§
§world_position_x: f32World space X position in metres.
world_position_y: f32World space Y position in metres.
world_position_z: f32World space Z position in metres.
world_velocity_x: f32Velocity in world space X position in metres per second.
world_velocity_y: f32Velocity in world space Y position in metres per second.
world_velocity_z: f32Velocity in world space Z position in metres per second.
world_forward_dir_x: i16World space forward X direction (normalised).
world_forward_dir_y: i16World space forward Y direction (normalised).
world_forward_dir_z: i16World space forward Z direction (normalised).
world_right_dir_x: i16World space right X direction (normalised).
world_right_dir_y: i16World space right Y direction (normalised).
world_right_dir_z: i16World space right Z direction (normalised).
g_force_lateral: f32Lateral G-Force component.
g_force_longitudinal: f32Longitudinal G-Force component.
g_force_vertical: f32Vertical G-Force component.
yaw: f32Yaw angle in radians.
pitch: f32Pitch angle in radians.
roll: f32Roll angle in radians.
Implementations§
Source§impl CarMotionData
impl CarMotionData
Sourcepub fn world_forward_dir_x_as_f32(&self) -> f32
pub fn world_forward_dir_x_as_f32(&self) -> f32
Returns world_forward_dir_x
divided by 32767.0f32.
Sourcepub fn world_forward_dir_y_as_f32(&self) -> f32
pub fn world_forward_dir_y_as_f32(&self) -> f32
Returns world_forward_dir_y
divided by 32767.0f32.
Sourcepub fn world_forward_dir_z_as_f32(&self) -> f32
pub fn world_forward_dir_z_as_f32(&self) -> f32
Returns world_forward_dir_z
divided by 32767.0f32.
Sourcepub fn world_right_dir_x_as_f32(&self) -> f32
pub fn world_right_dir_x_as_f32(&self) -> f32
Returns world_right_dir_x
divided by 32767.0f32.
Sourcepub fn world_right_dir_y_as_f32(&self) -> f32
pub fn world_right_dir_y_as_f32(&self) -> f32
Returns world_right_dir_y
divided by 32767.0f32.
Sourcepub fn world_right_dir_z_as_f32(&self) -> f32
pub fn world_right_dir_z_as_f32(&self) -> f32
Returns world_right_dir_z
divided by 32767.0f32.
Trait Implementations§
Source§impl BinRead for CarMotionData
impl BinRead for CarMotionData
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 CarMotionData
impl Clone for CarMotionData
Source§fn clone(&self) -> CarMotionData
fn clone(&self) -> CarMotionData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more