the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 20 lines 310 B view raw
1#pragma once 2 3#include "Control.h" 4 5class BodyControl : public Control 6{ 7private: 8 LivingEntity *mob; 9 static const float maxClampAngle; 10 int timeStill; 11 float lastHeadY; 12 13public: 14 BodyControl(LivingEntity *mob); 15 16 void clientTick(); 17 18private: 19 float clamp(float clampTo, float clampFrom, float clampAngle); 20};