MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / animate

Method animate

source/game/StarHumanoid.cpp:676–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676void 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
684void Humanoid::resetAnimation() {
685 m_animationTimer = 0.0f;

Callers 4

processStateChangesMethod · 0.80
animatePortraitMethod · 0.80
tickSharedMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected