| 221 | } |
| 222 | |
| 223 | mat4 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 | |
| 231 | int RiggedObject::GetTimeBetweenLastTwoAnimUpdates() { |
| 232 | return max_time_until_next_anim_update; |
no test coverage detected