| 674 | } |
| 675 | |
| 676 | void Humanoid::animate(float dt) { |
| 677 | m_animationTimer += dt; |
| 678 | m_emoteAnimationTimer += dt; |
| 679 | m_danceTimer += dt; |
| 680 | float headRotationTarget = globalHeadRotation() ? m_headRotationTarget : 0.f; |
| 681 | m_headRotation = (headRotationTarget - (headRotationTarget - m_headRotation) * powf(.333333f, dt * 60.f)); |
| 682 | } |
| 683 | |
| 684 | void Humanoid::resetAnimation() { |
| 685 | m_animationTimer = 0.0f; |
no outgoing calls
no test coverage detected