Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TombEngine/TombEngine
/ ItemInRange
Function
ItemInRange
TombEngine/Game/collision/collide_item.cpp:435–438 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
433
}
434
435
static bool ItemInRange(int x, int z, int radius)
436
{
437
return ((SQUARE(x) + SQUARE(z)) <= SQUARE(radius));
438
}
439
440
bool ItemNearLara(const Vector3i& origin, int radius)
441
{
Callers
2
ItemNearLara
Function · 0.85
ItemNearTarget
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected