Increase view radius, remove radius parameter from get_tangibles_near

This commit is contained in:
2026-06-08 14:58:44 -04:00
parent 536abb2231
commit fa7dcdcb0d
7 changed files with 14 additions and 14 deletions

View File

@@ -61,10 +61,10 @@ int64 FlxLockedWrapper::GetActor() {
return Lockable.Wrapper.get_actor_id(Get());
}
IdView FlxLockedWrapper::GetNear(int64 id, double rx, double ry, double rz) {
IdView FlxLockedWrapper::GetNear(int64 id) {
uint32 size;
int64* data;
Lockable.Wrapper.get_tangibles_near(Get(), id, rx, ry, rz, &size, (int64_t**)&data);
Lockable.Wrapper.get_tangibles_near(Get(), id, &size, (int64_t**)&data);
return IdView(data, size);
}

View File

@@ -120,7 +120,7 @@ public:
// fetch this once per frame and then store the
// IdView somewhere (like in the TangibleManager).
//
IdView GetNear(int64 id, double rx, double ry, double rz);
IdView GetNear(int64 id);
// Get animation queues.
//

View File

@@ -75,7 +75,7 @@ void ALuprexGameModeBase::UpdateConsoleOutput() {
}
void ALuprexGameModeBase::UpdateTangibles() {
double radius = 1000.0; // Hardwired for now.
double radius = 100000.0; // Hardwired for now.
using TanArray = UlxTangibleManager::TanArray;
if (!Playing) return;
UlxTangibleManager *TM = GetGameInstance()->GetSubsystem<UlxTangibleManager>();
@@ -83,7 +83,7 @@ void ALuprexGameModeBase::UpdateTangibles() {
{
FlxLockedWrapper w;
PlayerId = w.GetActor();
IdView nearids = w.GetNear(PlayerId, radius, radius, radius);
IdView nearids = w.GetNear(PlayerId);
TM->UpdateNearAccordingToLuprex(nearids);
alltans = TM->GetAllTangibles();
IdArray allids = TM->GetIds(alltans);