Visibility culling for chipmunk
-
- Posts: 2
- Joined: Fri May 08, 2009 2:46 am
- Contact:
Visibility culling for chipmunk
Is there a way to query the space hash for everything inside a AABB? This could be used for visibility culling, so you only need to draw what is visible. This way you don't need two different structures one to collisions (and everything else a physics engine do) and another for visibility. I think the functions would be kind of like the cpSpaceShapePointQuery/cpSpaceStaticShapePointQuery ones.
-
- Posts: 2
- Joined: Fri May 08, 2009 2:46 am
- Contact:
Re: Visibility culling for chipmunk
I actually looked at the code and it appears that the code on cpSpaceHash already exists in the function cpSpaceHashQuery, I just need to call it like the cpSpaceShapePointQuery calls cpSpaceHashPointQuery.
Who is online
Users browsing this forum: No registered users and 7 guests