Increase view radius, remove radius parameter from get_tangibles_near
This commit is contained in:
@@ -1376,7 +1376,7 @@ void World::get_animation_queues(uint32_t count, const int64_t *ids, uint32_t *l
|
||||
}
|
||||
}
|
||||
|
||||
void World::get_tangibles_near(uint64_t tanid, double rx, double ry, double rz, uint32_t *count, int64_t **ids) {
|
||||
void World::get_tangibles_near(uint64_t tanid, uint32_t *count, int64_t **ids) {
|
||||
uint32_t hash1 = eng::memhash();
|
||||
wrapper_scan_result_.clear();
|
||||
if (tanid != 0) {
|
||||
@@ -1384,7 +1384,7 @@ void World::get_tangibles_near(uint64_t tanid, double rx, double ry, double rz,
|
||||
scan.set_near(tanid, true);
|
||||
scan.set_omit_nowhere(true);
|
||||
scan.set_sorted(false);
|
||||
scan.set_radius(util::XYZ(rx, ry, rz));
|
||||
scan.set_radius(RadiusVisibility);
|
||||
scan.set_shape(PlaneScan::CYLINDER);
|
||||
get_near(scan, &wrapper_scan_result_);
|
||||
}
|
||||
@@ -1396,8 +1396,8 @@ void World::get_tangibles_near(uint64_t tanid, double rx, double ry, double rz,
|
||||
|
||||
void World::expose_world_to_driver(EngineWrapper *w) {
|
||||
w->world = this;
|
||||
w->get_tangibles_near = [](EngineWrapper *w, uint64_t tanid, double rx, double ry, double rz, uint32_t *count, int64_t **ids) {
|
||||
w->world->get_tangibles_near(tanid, rx, ry, rz, count, ids);
|
||||
w->get_tangibles_near = [](EngineWrapper *w, uint64_t tanid, uint32_t *count, int64_t **ids) {
|
||||
w->world->get_tangibles_near(tanid, count, ids);
|
||||
};
|
||||
w->get_animation_queues = [](EngineWrapper *w, uint32_t count, const int64_t *ids, uint32_t *lengths, const char **strings) {
|
||||
w->world->get_animation_queues(count, ids, lengths, strings);
|
||||
|
||||
Reference in New Issue
Block a user