MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / InterpComp_RemoveOldestRotY

Function InterpComp_RemoveOldestRotY

src/EntityComponents.c:277–283  ·  view source on GitHub ↗

#######################################################################################################################* *--------------------------------------------------InterpolationComponent-------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

275*--------------------------------------------------InterpolationComponent-------------------------------------------------*
276*#########################################################################################################################*/
277static void InterpComp_RemoveOldestRotY(struct InterpComp* interp) {
278 int i;
279 for (i = 0; i < Array_Elems(interp->RotYStates); i++) {
280 interp->RotYStates[i] = interp->RotYStates[i + 1];
281 }
282 interp->RotYCount--;
283}
284
285static void InterpComp_AddRotY(struct InterpComp* interp, float state) {
286 if (interp->RotYCount == Array_Elems(interp->RotYStates)) {

Callers 2

InterpComp_AddRotYFunction · 0.85
InterpComp_AdvanceRotYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected