QcEntityMesher::HeldPlacement Struct
struct QcEntityMesher::HeldPlacementWhere a held item sits around the grip (decision E-831), resolved from the content's hold transforms (QcHoldTransform): a point of the item (a sprite one unit across, a block one unit per edge, relative to the grip) is scaled by scale, turned by rotate (degrees: Turn by y, then Rotate by x and z) and moved by translate, in metres in the frame of the fist. More...
| Header: | #include <clientcore/entitymeshes/QcEntityMesher.h> |
Public Functions
| QcEntityMesher::HeldPlacement | towards(const QcEntityMesher::HeldPlacement &other, double weight) const |
Public Variables
| QcVec3 | scale |
Detailed Description
Member Function Documentation
QcEntityMesher::HeldPlacement HeldPlacement::towards(const QcEntityMesher::HeldPlacement &other, double weight) const
Returns the placement weight (0..1) of the way from this placement to other: translate and rotate blended per axis as written, the scale kept, so the grip stays in the fist while the item turns.
Member Variable Documentation
QcVec3 HeldPlacement::scale
A quarter of a block per unit when no pack sets a size.