Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BLEEDING] Maintain location traces (not making use of those, yet).
No change for the function of the plugin, except if there are new bugs. Actual changes: * Keep track of squared distance to the previous element in a trace. * Balance mergeDist: prevent merging the latest entry, if the squared distance from the latest to the second latest element is greater than mergeDist. Never merge if there are only two entries in total. * Add convenience methods for resetting and updating the trace. * Maintain the moving traces actively. With intended use being player-player interaction, we will not reset with every teleport.
- Loading branch information
Showing
7 changed files
with
191 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.