QtCraft API C++ classes QML types Handbook

QcAnimator::HandPose Struct

struct QcAnimator::HandPose

Where the first-person arm and held item sit relative to their rest position, in the camera's frame (x right, y up, z backwards) in metres, and how far arm and item are turned together about the shoulder (degrees; QcHandSwing::Angles). More...

Header: #include <clientcore/figures/QcAnimator.h>

Public Functions

void holdDrawn(double draw, double progress, double released, double time)

Detailed Description

swing (0..1) is how far the held item has turned from its rest placement to its swing placement (ItemLook::swing, decision E-831); the base content gives none, so arm and item swing as one rigid body (decision E-881). roll turns an arm holding an item about the fist and reach (0..1, how far into the strike) moves it as a whole towards the middle of the screen (QcEntityMesher::heldStrikeShift); punch (metres) moves the empty arm, and only it, forward as a whole: a fist strikes ahead, not just down. aim (0..1) is how far a launcher has come to its drawn placement (QcHoldDisplay::drawn, decision E-984).

Member Function Documentation

void HandPose::holdDrawn(double draw, double progress, double released, double time)

Brings the hand to a drawn launcher (decision E-984): progress (QcHandTimers::aim) of the way towards the middle of the screen, pulled back by draw (the draw's power, 0..1), trembling from a tenth of the draw on at time (seconds), less as the hand comes or goes; released is the part of the draw that was let go (0..1), by which the hand dips on its way back.