QtCraft API C++ classes QML types Handbook

QcPoses Namespace

The box and the eyes of a body in each pose. More...

Header: #include <common/physics/QcPose.h>

Variables

const double eyeShare

Functions

QcAabb boxAt(QcPose pose, const QcVec3 &feet, float yaw, double width, double height)
QcVec3 eyesAt(QcPose pose, const QcVec3 &feet, float yaw, double width, double height)

Detailed Description

Variable Documentation

const double QcPoses::eyeShare

The share of its height at which a standing or sitting body has its eyes.

Function Documentation

QcAabb QcPoses::boxAt(QcPose pose, const QcVec3 &feet, float yaw, double width, double height)

Returns the box of a body of width and height with its feet at feet, facing yaw, in pose.

QcVec3 QcPoses::eyesAt(QcPose pose, const QcVec3 &feet, float yaw, double width, double height)

Returns where the eyes of a body of width and height with its feet at feet, facing yaw, in pose are: the middle of its box while it lies, eyeShare of its height above its feet otherwise.