MCPcopy Create free account
hub / github.com/defold/defold / SwitchPlayer

Function SwitchPlayer

engine/rig/src/rig.cpp:123–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 static RigPlayer* SwitchPlayer(HRigInstance instance)
124 {
125 instance->m_CurrentPlayer = (instance->m_CurrentPlayer + 1) % 2;
126 return &instance->m_Players[instance->m_CurrentPlayer];
127 }
128
129 Result PlayAnimation(HRigInstance instance, dmhash_t animation_id, dmRig::RigPlayback playback, float blend_duration, float offset, float playback_rate)
130 {

Callers 1

PlayAnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected