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
from panda3d.core import * | |
from array import array | |
def optimize_collisions(np, *, convert_geometry=False, ignore_z=False, preserve_name=True, preserve_tags=True, track_progress=None): | |
"""Organizes all "into" collision nodes below this level into an octree or | |
quadtree (actually an AABB tree, but never mind that) for greatly speeding | |
up collisions. | |
If convert_geometry is True, also converts all GeomNodes (unless you set |