Represents a single bone in a WoW M2 model skeleton.
More...
#include <Bone.h>
|
| void | calcMatrix (std::vector< Bone > &allbones, ssize_t anim, size_t time, bool rotate=true) |
| | Compute the bone matrix from parent bones and animation data.
|
| |
| void | initV3 (GameFile &f, ModelBoneDef &b, const modelAnimData &data) |
| | Initialise the bone from an M2 v3+ file.
|
| |
Represents a single bone in a WoW M2 model skeleton.
Definition at line 19 of file Bone.h.
◆ calcMatrix()
| void Bone::calcMatrix |
( |
std::vector< Bone > & |
allbones, |
|
|
ssize_t |
anim, |
|
|
size_t |
time, |
|
|
bool |
rotate = true |
|
) |
| |
Compute the bone matrix from parent bones and animation data.
Definition at line 9 of file Bone.cpp.
◆ initV3()
Initialise the bone from an M2 v3+ file.
Definition at line 79 of file Bone.cpp.
◆ billboard
Whether this bone is billboarded.
Definition at line 29 of file Bone.h.
◆ boneDef
Raw bone definition from the M2 file.
Definition at line 33 of file Bone.h.
◆ calc
Whether this bone has been calculated for the current frame.
Definition at line 35 of file Bone.h.
◆ mat
Computed transformation matrix.
Definition at line 30 of file Bone.h.
◆ mrot
Computed rotation-only matrix.
Definition at line 31 of file Bone.h.
◆ parent
Parent bone index (-1 if root).
Definition at line 27 of file Bone.h.
◆ pivot
◆ rot
Rotation animation track (packed 16-bit).
Definition at line 23 of file Bone.h.
◆ scale
Scale animation track.
Definition at line 24 of file Bone.h.
◆ trans
Translation animation track.
Definition at line 22 of file Bone.h.
◆ transPivot
| glm::vec3 Bone::transPivot |
Pivot point and translated pivot.
Definition at line 26 of file Bone.h.
The documentation for this class was generated from the following files: