Transform namespace updated & freecam removed

This commit is contained in:
Jadis0x
2024-06-08 13:14:27 +03:00
parent d2ac02fde8
commit 136d3d137e
7 changed files with 43 additions and 58 deletions

View File

@@ -31,11 +31,11 @@ static void DrawBoxESP(app::GameObject *it, float footOffset, float headOffset,
if (!it || cam == nullptr)
return;
app::Transform* _transform = Transform::Get(it);
app::Transform* _transform = Transform::GetTransform(it);
if (_transform == nullptr)
return;
app::Vector3 pos = Transform::Position(_transform);
app::Vector3 pos = Transform::GetPosition(_transform);
app::Vector3 footpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + footOffset, pos.z}, NULL);
app::Vector3 headpos = app::Camera_WorldToScreenPoint_1(cam, app::Vector3{pos.x, pos.y + headOffset, pos.z}, NULL);