mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 17:28:00 +03:00
TR4 bbox camera formula
This commit is contained in:
parent
ba06a9cd8f
commit
3da4b165ab
1 changed files with 1 additions and 1 deletions
|
@ -1461,7 +1461,7 @@ void CalculateCamera()
|
|||
auto* bounds = GetBoundsAccurate(item);
|
||||
|
||||
int x;
|
||||
int y = ((bounds->Y1 + bounds->Y2) / 2) + item->Pose.Position.y - CLICK(1);
|
||||
int y = item->Pose.Position.y + bounds->Y2 + (3 * (bounds->Y1 - bounds->Y2) / 4);
|
||||
int z;
|
||||
|
||||
if (Camera.item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue