2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Control.h"
|
|
|
|
|
|
|
|
|
|
class BodyControl : public Control
|
|
|
|
|
{
|
|
|
|
|
private:
|
2026-03-01 11:00:23 -06:00
|
|
|
LivingEntity *mob;
|
2026-03-01 12:16:08 +08:00
|
|
|
static const float maxClampAngle;
|
|
|
|
|
int timeStill;
|
|
|
|
|
float lastHeadY;
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-01 11:00:23 -06:00
|
|
|
BodyControl(LivingEntity *mob);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
void clientTick();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
float clamp(float clampTo, float clampFrom, float clampAngle);
|
|
|
|
|
};
|