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

Function AnimatedComp_Init

src/EntityComponents.c:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void AnimatedComp_Init(struct AnimatedComp* anim) {
56 Mem_Set(anim, 0, sizeof(struct AnimatedComp));
57 anim->BobStrengthO = 1.0f; anim->BobStrengthN = 1.0f;
58}
59
60void AnimatedComp_Update(struct Entity* e, Vec3 oldPos, Vec3 newPos, float delta) {
61 struct AnimatedComp* anim = &e->Anim;

Callers

nothing calls this directly

Calls 1

Mem_SetFunction · 0.85

Tested by

no test coverage detected