Updating animation state machines
Now that we've created both the soldier and weapon ASMs, we need to add an update call within the sandbox update loop. This allows for both ASMs to update whatever animations they are playing:
Sandbox.lua
:
function Sandbox_Update(sandbox, deltaTimeInMillis) soliderAsm:Update( deltaTimeInMillis, Sandbox.GetTimeInMillis(sandbox)); weaponAsm:Update( deltaTimeInMillis, Sandbox.GetTimeInMillis(sandbox)); end