Basic stuff: Bouncing off a box doesn't work

Sagan1338
Posts: 2
Joined: Thu Jun 16, 2011 2:29 pm

Basic stuff: Bouncing off a box doesn't work

Post by Sagan1338 »

Hi, so I'm having trouble getting even basic stuff to run.
I probably have to do something really obvious that I just don't know about, but here is my problem:

If I run the Hello World example from the Wiki (http://bulletphysics.org/mediawiki-1.5. ... ello_World - Full Source Code at the bottom) it works as advertised.

If I replace the line

Code: Select all

btCollisionShape* groundShape = new btStaticPlaneShape(btVector3(0,1,0),1);
with

Code: Select all

btCollisionShape* groundShape = new btBoxShape(btVector3(10,1,10));
the example stops working. The sphere still collides with the ground but it doesn't bounce any more. Which doesn't make any sense to me. If everything else about the body stays the same then the ball should repel just the same. Do others have the same problem? And what do I have to do to get this to work?
Sagan1338
Posts: 2
Joined: Thu Jun 16, 2011 2:29 pm

Re: Basic stuff: Bouncing off a box doesn't work

Post by Sagan1338 »

OK I've done some further investigation and I have come to the conclusion that this is a bug with Bullet 2.78, as the behavior is correct in Bullet 2.77. I'm gonna file a bug report.