QtCraft API C++ classes QML types Handbook

QcPulseDefinition Struct

A water creature that swims in pulses (the squid, decision E-974), from its data ("aquatic": {"pulse": ...}): each pulse of seconds starts with a push of thrust times the pulse towards speed m/s, then it glides and slows down; hurt, it pulses twice as often at its chaseSpeed. More...

Header: #include <common/content/mobs/QcMobTraits.h>

Public Variables

double seconds
double speed
double spread
double thrust

Detailed Description

Reaches the client, which opens the tentacles (QcMobPart::tentacle) by up to spread degrees as the creature slows below speed and tilts the body along its way.

Member Variable Documentation

double QcPulseDefinition::seconds

Seconds of one pulse.

double QcPulseDefinition::speed

Speed in m/s a push drives it to.

double QcPulseDefinition::spread

Degrees the tentacles open while it glides slowly or rests.

double QcPulseDefinition::thrust

Share of the pulse that pushes (0.05..0.9).