btStaticPlaneShape and overflow in AABB

Zwingling
Posts: 3
Joined: Thu Aug 23, 2012 9:27 pm

btStaticPlaneShape and overflow in AABB

Post by Zwingling »

When i add this to my btDynamicsWorld

Code: Select all

btCollisionShape* shape = new btStaticPlaneShape(btVector3(0.0f,1.0f,0.0f),0);
I get this errorreport: Overflow in AABB, object removed from simulation
I think its because the plane is infinite and so the updateAABB() func causes the overflow...
Is there anything to solve this problem or can i just ignore it??


IDE: visual studio 2010
OS: WINDOWS 7 HOME Premium
Bullet Version: not sure
Zwingling
Posts: 3
Joined: Thu Aug 23, 2012 9:27 pm

Re: btStaticPlaneShape and overflow in AABB

Post by Zwingling »

Fixed:
I used the this func. to calculate the mass

Code: Select all

btScalar const mass = volume * specificGravity;
And volume was invalid.
anthrax11
Posts: 72
Joined: Wed Feb 24, 2010 9:49 pm

Re: btStaticPlaneShape and overflow in AABB

Post by anthrax11 »

The mass should be set to 0 to indicate that it is a static object and that gravity doesn't affect it.