QtCraft API C++ classes QML types Handbook

QcProjectileFlight::Step Struct

struct QcProjectileFlight::Step

The result of one step of a projectile. More...

Header: #include <server/projectiles/QcProjectileFlight.h>

Public Variables

QcBlockPos block
quint32 body
QcBlockFace face
QcProjectileFlight::Outcome outcome
QcVec3 point

Detailed Description

Member Variable Documentation

QcBlockPos Step::block

The block hit (Outcome::HitBlock).

quint32 Step::body

Entity id of the body hit (Outcome::HitBody).

QcProjectileFlight::Outcome Step::outcome

How the step ended.