Unnecessary Proxies/Pairs being created?

Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
Jacob_
Posts: 22
Joined: Wed Dec 30, 2009 7:12 pm

Unnecessary Proxies/Pairs being created?

Postby Jacob_ » Wed Feb 22, 2012 11:24 am

I have implemented smooth heightmap-based terrain by using a bunch of trapezoids arranged in a row. It usually works well, but I noticed that proxies and pairs still get created between the terrain parts, even though they are not supposed to collide with each other (using a contact filter) and they are all fixed. If the terrain is too wide, the number of proxies is high enough to crash the game. Is it necessary to create proxies and pairs for fixed shapes that are all attached to the same body?

irresistible force
Posts: 1988
Joined: Tue Jun 24, 2008 8:25 pm
Location: Tokyo
Contact:

Re: Unnecessary Proxies/Pairs being created?

Postby irresistible force » Wed Feb 22, 2012 6:04 pm

Pairs should not be made between fixtures on the same body... (see b2ContactManager::AddPair)
Are you sure they are on the same body... or the Box2D you're using is up to date?

Erin Catto
Site Admin
Posts: 2948
Joined: Thu Sep 06, 2007 12:34 am

Re: Unnecessary Proxies/Pairs being created?

Postby Erin Catto » Fri Feb 24, 2012 4:09 pm

There are no more pair objects in the current version of Box2D. Contacts are not created between static bodies.


Return to “General Discussion”



Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest