QtCraft API C++ classes QML types Handbook

QcExplosionEffects::Puff Struct

struct QcExplosionEffects::Puff

One puff of fire or smoke of an explosion. More...

Public Variables

QcVec3 centre
bool flash
int lifeTicks
double size
quint64 startTick
QcVec3 velocity

Detailed Description

Member Variable Documentation

QcVec3 Puff::centre

Where it starts: the explosion's centre.

bool Puff::flash

Whether it is a bright puff of fire (else smoke).

int Puff::lifeTicks

How many ticks the puff lasts.

double Puff::size

Its edge length in metres at the start.

quint64 Puff::startTick

The client tick the explosion was added at.

QcVec3 Puff::velocity

Metres per second of its burst.