Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2019-07-15 00:00:00Z and 2019-07-16 00:00:00Z
Avatar
why this so gay
🏳️‍🌈 1
🍆 1
🇺 4
451545057317879809 2
Avatar
I got an idea: in the moment entities like pickups are bruteforcing the player list to check for collisions
13:59
so I thought it might make sense to organize the players in a kd tree
13:59
the problem is players move and the tree needs to updated after each position update
14:00
but what if we organize all pickups in kdtrees and let the players check for collisions? We could get rid of the update tick on at least all of the pickups
Avatar
ChillerDragon 2019-07-15 19:02:17Z
wat is a kd tree
Avatar
In computer science, a k-d tree (short for k-dimensional tree) is a space-partitioning data structure for organizing points in a k-dimensional space. k-d trees are a useful data structure for several applications, such as searches involving a multidimensional search key (e.g....
19:04
i think this time lmgtfy is not a good answer
Avatar
also known as quadtree for 2d stuff
19:12
A quadtree is a tree data structure in which each internal node has exactly four children. Quadtrees are the two-dimensional analog of octrees and are most often used to partition a two-dimensional space by recursively subdividing it into four quadrants or regions. The data a...
Avatar
a kd tree is not a quadtree
Avatar
oh
Avatar
they are both algorithms to store data effeciently, but they are different
19:15
*store in order to search effectivly
19:15
each node of a kd tree contains a point
19:16
teeworlds would be even more effective with quadtrees, because the character/pickup could just search in its subnode
Avatar
Sometimes i just think about random stuff ...
19:34
I just found a post about my problem
19:34
I have been looking for a quadtree/quadtree node implementation on the net for ages. There is some basic stuff but nothing that I would be able to really use it a game. My purpose is to store obje...
Exported 19 message(s)