Deprecate get_objects_inside_radius()
API function #6326
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#6326
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's used for many things, but there should be better ways to do those. That will require further API additions.
Current uses:
get_objects_inside_radius
used to find it again to change/remove. Used by anvils, armor stands, signs, etc.How this should be done:
1 - Special API to "parent" entity to a node, so it has same lifetime as the node - gets created/activated/deleted together with node itself, and node would store a reference to entity and entity to node.
2 and 3 should be handled by engine collision detection (even better if it's
on_collide
callbacks), right now it can be updated to usemoveresult
instead.4 - should also use collision detection. Instead of static object constantly polling the world, it should just create a "sensor" volume, that would be handled by collision detection code. Will work nicely with (1).
5 - same "sensor" volume, handled by collision detection.
6 - should be other ways to count/limit, (sensor objects would work too)
https://github.com/minetest/minetest/issues/6963
this is also currently accomplished by iterating all entities on the server, so i'm not sure what benefit this would give.
Currently, yes, but at least in theory, collision detection would only be run once per server step VS each object doing independent queries at random times.