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

Function LocalInterpComp_Angle

src/EntityComponents.c:439–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static void LocalInterpComp_Angle(float* prev, float* next, float value, cc_bool interpolate) {
440 value = Math_ClampAngle(value);
441 *next = value;
442 if (!interpolate) *prev = value;
443}
444
445void LocalInterpComp_SetLocation(struct InterpComp* interp, struct LocationUpdate* update, struct Entity* e) {
446 struct EntityLocation* prev = &e->prev;

Callers 1

Calls 1

Math_ClampAngleFunction · 0.85

Tested by

no test coverage detected