Epok Engine

EPOK RUNTIME

epok::skeletal_query_detail::bone_matrix

Function · 1 overload

Function

Performs `bone matrix` as part of rigid skeletal animation and pose evaluation.

Belongs to
epok::skeletal_query_detail
Header
skeletal.hpp
Overloads
1

Declaration

Declaration
inline bool bone_matrix(const SkeletalMesh& model,const Animator& animator,int16_t aim_bone,const int16_t* aim_stop_bones,Fixed aim_pitch,uint32_t bone,PoseKind pose,Affine<Fixed>& output)

Performs `bone matrix` as part of rigid skeletal animation and pose evaluation.

ParameterTypeMeaning
modelconst SkeletalMesh &Value supplied for model. Keep referenced or pointed-to data valid for the complete call.
animatorconst Animator &Value supplied for animator. Keep referenced or pointed-to data valid for the complete call.
aim_boneint16_tValue supplied for aim_bone. Keep referenced or pointed-to data valid for the complete call.
aim_stop_bonesconst int16_t *Value supplied for aim_stop_bones. Keep referenced or pointed-to data valid for the complete call.
aim_pitchFixedValue supplied for aim_pitch. Keep referenced or pointed-to data valid for the complete call.
boneuint32_tValue supplied for bone. Keep referenced or pointed-to data valid for the complete call.
posePoseKindValue supplied for pose. Keep referenced or pointed-to data valid for the complete call.
outputAffine<Fixed> &Value supplied for output. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "skeletal.hpp"

// Assume these named values have been initialized with valid data:
// const SkeletalMesh & model
// const Animator & animator
// int16_t aim_bone
// const int16_t * aim_stop_bones
// Fixed aim_pitch
// uint32_t bone
// PoseKind pose
// Affine<Fixed> & output

auto result = epok::skeletal_query_detail::bone_matrix(model, animator, aim_bone, aim_stop_bones, aim_pitch, bone, pose, output);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/skeletal.hpp:142

Related members