Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Posted by: Dimagus on Jul 17 2006, 06:47 PM
Maybe I'm being too much of a perfectionist
node.X - average x coordinate at which the circle is displayed
node.Y - average y coordinate at which the circle is displayed
node.AvgN - number of player positions that contributed to the nodes average position so farplayer.X - x coordinate of the players current position
player.Y - y coordinate of the players current positionnode.X = (node.X * node.AvgN + player.X) / (node.AvgN+1)
node.Y = (node.Y * node.AvgN + player.Y) / (node.AvgN+1)
node.AvgN = node.AvgN + 1local n = node.AvgN or 1
node.X = (node.X * n + player.X) / (n+1)
node.Y = (node.Y * n + player.Y) / (n+1)
node.AvgN = n + 1
1 to 8 of 8