| 240 | extern Timer game_timer; |
| 241 | |
| 242 | void RiggedObject::CalcRootBoneVelocity() { |
| 243 | vec3 pos(0.0f); |
| 244 | vec3 old_pos(0.0f); |
| 245 | pos = display_bone_matrices[0] * pos; |
| 246 | old_pos = old_root_bone * old_pos; |
| 247 | |
| 248 | old_root_bone = display_bone_matrices[0]; |
| 249 | |
| 250 | velocity = (length(pos - old_pos)) / (game_timer.GetWallTime() - old_time); |
| 251 | old_time = game_timer.GetWallTime(); |
| 252 | } |
| 253 | |
| 254 | void RiggedObject::GetCubicSplineWeights(float interp, float* weights) { |
| 255 | float interp_squared = interp * interp; |
nothing calls this directly
no test coverage detected