You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
``The problem occurred when I was using CollisionManagerGrid. When the add() was used, nothing added in to its buckets attribute.I monitored the conditions in the add(). Then I realized that the two rows:
for cell_idx in self._iter_cells_for_aabb(obj.cshape.minmax()):
self.buckets[cell_idx].add(obj)
The second row did not run because the code in first line "Internal StopIteration". Then using the same data I monitored the func"self.iter_cells_for_aabb()". In the function, I realized that the value "iy_sup > self.rows" and "ix_sup > self.cols" is true, which is unexpected since it make "range(iy_lo, iy_sup)" in "for iy in range(iy_lo, iy_sup):" no longer running resulting from iy_lo bigger than iy_sup, which results to internal stop iteration because "the yield cell_id" won't run without the loop.
I use
to create the instance, according to the programming guide. However, the objects I wanted to add were outside the area because they are in a tiledmap which cannot be showed completely on the screen. I wonder if there is a solution? thank you in advance.
The text was updated successfully, but these errors were encountered:
``The problem occurred when I was using CollisionManagerGrid. When the add() was used, nothing added in to its buckets attribute.I monitored the conditions in the add(). Then I realized that the two rows:
The second row did not run because the code in first line "Internal StopIteration". Then using the same data I monitored the func"self.iter_cells_for_aabb()". In the function, I realized that the value "iy_sup > self.rows" and "ix_sup > self.cols" is true, which is unexpected since it make "range(iy_lo, iy_sup)" in "for iy in range(iy_lo, iy_sup):" no longer running resulting from iy_lo bigger than iy_sup, which results to internal stop iteration because "the yield cell_id" won't run without the loop.
I use
to create the instance, according to the programming guide. However, the objects I wanted to add were outside the area because they are in a tiledmap which cannot be showed completely on the screen. I wonder if there is a solution? thank you in advance.
The text was updated successfully, but these errors were encountered: