pub struct PlayerSample {Show 15 fields
pub player_id: PlayerId,
pub is_team_0: bool,
pub hitbox: CarHitbox,
pub rigid_body: Option<RigidBody>,
pub boost_amount: Option<f32>,
pub last_boost_amount: Option<f32>,
pub boost_active: bool,
pub dodge_active: bool,
pub dodge_torque: Option<Vec3>,
pub powerslide_active: bool,
pub match_goals: Option<i32>,
pub match_assists: Option<i32>,
pub match_saves: Option<i32>,
pub match_shots: Option<i32>,
pub match_score: Option<i32>,
}Expand description
A sampled player state at a frame.
Fields§
§player_id: PlayerId§is_team_0: bool§hitbox: CarHitbox§rigid_body: Option<RigidBody>§boost_amount: Option<f32>§last_boost_amount: Option<f32>§boost_active: bool§dodge_active: bool§dodge_torque: Option<Vec3>World-frame dodge torque of the player’s most recent dodge, when
available. This is the flip’s rotation axis (a horizontal vector; its
world-z is ~0), and combined with the travel direction at the dodge it
recovers the dodge direction (forward/back vs side) the player input. See
the flick detector’s reverse/side classification. None on inputs that
do not replicate dodge torque (e.g. the BakkesMod live path).
powerslide_active: bool§match_goals: Option<i32>§match_assists: Option<i32>§match_saves: Option<i32>§match_shots: Option<i32>§match_score: Option<i32>Implementations§
Trait Implementations§
Source§impl Clone for PlayerSample
impl Clone for PlayerSample
Auto Trait Implementations§
impl Freeze for PlayerSample
impl RefUnwindSafe for PlayerSample
impl Send for PlayerSample
impl Sync for PlayerSample
impl Unpin for PlayerSample
impl UnsafeUnpin for PlayerSample
impl UnwindSafe for PlayerSample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more