Struct airmash_protocol::server::PlayerFireProjectile [] [src]

pub struct PlayerFireProjectile {
    pub id: u16,
    pub ty: u8,
    pub pos_x: f32,
    pub pos_y: f32,
    pub speed_x: f32,
    pub speed_y: f32,
    pub accel_x: f32,
    pub accel_y: f32,
    pub max_speed: f32,
}

Data on a projectile fired by a plane.

This is data for the projectiles array of a PlayerFire packet.

Fields

Projectile id

Projectile type

Current projectile X position

Current projectile Y position

Current projectile speed in X direction

Current projectile speed in Y direction

Current projectile acceleration in X direction

Current projectile acceleration in Y direction

The maximum speed that the projectile can attain

Trait Implementations

impl Clone for PlayerFireProjectile
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PlayerFireProjectile
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for PlayerFireProjectile
[src]

Auto Trait Implementations