mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-09 10:13:58 +00:00
refactor: remove heap-allocated AABBs
This commit is contained in:
@@ -20,7 +20,7 @@ void LookControl::setLookAt(std::shared_ptr<Entity> target, float yMax,
|
||||
target->y +
|
||||
std::dynamic_pointer_cast<LivingEntity>(target)->getHeadHeight();
|
||||
else
|
||||
wantedY = (target->bb->y0 + target->bb->y1) / 2;
|
||||
wantedY = (target->bb.y0 + target->bb.y1) / 2;
|
||||
wantedZ = target->z;
|
||||
this->yMax = yMax;
|
||||
this->xMax = xMax;
|
||||
@@ -88,4 +88,4 @@ double LookControl::getWantedX() { return wantedX; }
|
||||
|
||||
double LookControl::getWantedY() { return wantedY; }
|
||||
|
||||
double LookControl::getWantedZ() { return wantedZ; }
|
||||
double LookControl::getWantedZ() { return wantedZ; }
|
||||
|
||||
Reference in New Issue
Block a user