QtCraft API C++ classes QML types Handbook

QcMobPart Struct

One box of a mob's model, in metres relative to the mob's feet centre, facing north (-Z). More...

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

Public Variables

QcVec3 from
QcVec3 sitOffset
bool tentacle
QString texture
QcTint tint
QcVec3 to
QcMobKinds

Detailed Description

Member Variable Documentation

QcVec3 QcMobPart::from

Lower corner of the box ("from"), below to on every axis.

QcVec3 QcMobPart::sitOffset

Where the box moves while the creature sits (QcPose::Sitting): a sitting dog lowers its back and folds its hind legs.

bool QcMobPart::tentacle

A tentacle (decision E-974): it turns outwards about the middle of its top as a creature that swims in pulses (QcPulseDefinition) glides, and back in as it pushes.

QString QcMobPart::texture

Content name of the texture on the box ("texture").

QcTint QcMobPart::tint

Tinted with a colour of the creature (QcTint::Collar: the collar of a tame one, decision E-480); None for the texture as it is.

QcVec3 QcMobPart::to

Upper corner of the box ("to").

Related Non-Members

[alias] QcMobKinds

The mob definitions of a content, indexed by their creature kind (QcContentRegistry::mobs, decision E-952).