Visibility culling for chipmunk

Discuss new features and future development.
Post Reply
santagada
Posts: 2
Joined: Fri May 08, 2009 2:46 am
Contact:

Visibility culling for chipmunk

Post by santagada »

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.
santagada
Posts: 2
Joined: Fri May 08, 2009 2:46 am
Contact:

Re: Visibility culling for chipmunk

Post by santagada »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests