QcEntityPose Struct
What the animator needs to know about an entity in one frame. More...
| Header: | #include <clientcore/figures/QcEntityPose.h> |
Public Variables
| bool | armsForward |
| QcPose | body |
| double | deathProgress |
| double | drawProgress |
| bool | flying |
| float | headPitch |
| float | headYaw |
| double | hurtProgress |
| bool | inBoat |
| bool | inWater |
| bool | onGround |
| bool | riding |
| double | rowPhase |
| bool | sneaking |
| double | speed |
| bool | sprinting |
| double | swingProgress |
| double | walkDistance |
Detailed Description
Movement states come from the server; progress values are advanced by the client.
Member Variable Documentation
bool QcEntityPose::armsForward
Walks with the arms stretched forward (zombies, QcMobDefinition::armsForward).
QcPose QcEntityPose::body
How the body holds itself (decision E-423): lying on its back (a villager in its bed, decision E-411) or sitting with the legs forward.
double QcEntityPose::deathProgress
0..1 while the entity falls over dying, negative otherwise.
double QcEntityPose::drawProgress
The power of a launcher being drawn (decision E-425), 0..1: both arms aim along the view; negative when not drawing.
bool QcEntityPose::flying
Flying in creative mode (decision E-284); only the local player's view uses it so far.
float QcEntityPose::headPitch
View pitch in degrees, positive looks up.
float QcEntityPose::headYaw
Head turned against the body in degrees, positive to the entity's right (the character preview's gaze; 0 in the world, where the body follows the view).
double QcEntityPose::hurtProgress
0..1 while the entity recoils from a hit, negative otherwise.
bool QcEntityPose::inWater
In water.
bool QcEntityPose::onGround
Standing or walking on the ground.
bool QcEntityPose::riding
Sitting in a minecart (decision E-382): the legs point forward.
bool QcEntityPose::sneaking
Sneaking.
bool QcEntityPose::sprinting
Sprinting.
double QcEntityPose::swingProgress
0..1 while the right arm swings (mining, attacking, using), negative otherwise.