mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix for trigger sphere minimum size (wasnt working for small islands in Pirates).
This commit is contained in:
parent
051e017d0a
commit
2af2fbb30f
@ -31,6 +31,7 @@ class CartesianGridBase:
|
|||||||
# larger than the trigger sphere that loads the grid. This gives us some
|
# larger than the trigger sphere that loads the grid. This gives us some
|
||||||
# room to start setting interest to the grid before we expect to see any objects
|
# room to start setting interest to the grid before we expect to see any objects
|
||||||
# on it.
|
# on it.
|
||||||
|
sphereRadius = max(sphereRadius, gridRadius*cellWidth)
|
||||||
return 2 * (sphereRadius // cellWidth)
|
return 2 * (sphereRadius // cellWidth)
|
||||||
|
|
||||||
def getZoneCellOrigin(self, zoneId):
|
def getZoneCellOrigin(self, zoneId):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user