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
id: u16
Projectile id
ty: u8
Projectile type
pos_x: f32
Current projectile X position
pos_y: f32
Current projectile Y position
speed_x: f32
Current projectile speed in X direction
speed_y: f32
Current projectile speed in Y direction
accel_x: f32
Current projectile acceleration in X direction
accel_y: f32
Current projectile acceleration in Y direction
max_speed: f32
The maximum speed that the projectile can attain
Trait Implementations
impl Clone for PlayerFireProjectile
[src]
fn clone(&self) -> PlayerFireProjectile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PlayerFireProjectile
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more