forked from pythonarcade/arcade
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize & document collision circular check in physics engines (pyth…
…onarcade#2155) * Clarify _circular_check doc, signature, and typing * Add None return annotation * Rename player argment to moving * Reformat docstring * Use Sprite.position in _circular_check insted of .center_* * Optimize _circular_check with reduced ops * Use array instead of putting GC pressure onto it * Use strided iteration over the 16-length array of floats * Update the debug print statements * Clarify algorithm and rename function * Rename to _wiggle_until_free * Update docstring * Rename variable * Stop black auto-formatter from turning readable 4 x 4 grid into a tower * Fix array slice assigment issue and touch-up types * Use a list instead of an array.array since only ctypes ctypes arrays allow slice assignment from iterables * Adjust some formatting and comment locations * Clean up physics_engines imports
- Loading branch information
Showing
1 changed file
with
52 additions
and
26 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