MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASGetBindMatrix

Function ASGetBindMatrix

Source/Objects/riggedobject.cpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223mat4 ASGetBindMatrix(Skeleton* skeleton, int which_bone) {
224 mat4 mat;
225 const PhysicsBone& p_bone = skeleton->physics_bones[which_bone];
226 mat.SetTranslationPart(p_bone.initial_position * -1.0f);
227 mat = transpose(p_bone.initial_rotation) * mat;
228 return mat;
229}
230
231int RiggedObject::GetTimeBetweenLastTwoAnimUpdates() {
232 return max_time_until_next_anim_update;

Callers 1

LoadMethod · 0.85

Calls 2

SetTranslationPartMethod · 0.80
transposeFunction · 0.50

Tested by

no test coverage detected