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

Function InterpComp_AddRotY

src/EntityComponents.c:285–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static void InterpComp_AddRotY(struct InterpComp* interp, float state) {
286 if (interp->RotYCount == Array_Elems(interp->RotYStates)) {
287 InterpComp_RemoveOldestRotY(interp);
288 }
289 interp->RotYStates[interp->RotYCount] = state; interp->RotYCount++;
290}
291
292static void InterpComp_AdvanceRotY(struct InterpComp* interp, struct Entity* e) {
293 if (!interp->RotYCount) return;

Callers 2

Calls 1

Tested by

no test coverage detected