Objects randomly drop through ground

Post Reply
ed_welch
Posts: 43
Joined: Wed Mar 04, 2015 6:16 pm

Objects randomly drop through ground

Post by ed_welch »

I'm having a problem, when objects are dropped in my scene they fall through the ground half the time. I tried various things, making the ground a very deep box, doubling the polycount of the ground and also using a btBoxShape instead of btBvhTriangleMeshShape, but nothing works.
Is there anything else I can try?
Ehsanizadi
Posts: 72
Joined: Mon Dec 02, 2013 4:13 pm

Re: Objects randomly drop through ground

Post by Ehsanizadi »

Hey Ed,

As far I understood, in Bullet if dynamic objects are not moved or collided for some time, they will sleep (i.e. they will set to non-dynamic due to some optimization reasons)
by the command below you can set your objects in the scene always awake.

yourRigidBody->setActivationState(4);

Do this for your falling object and ground object and post the feedback.
Ehsan
ed_welch
Posts: 43
Joined: Wed Mar 04, 2015 6:16 pm

Re: Objects randomly drop through ground

Post by ed_welch »

Ehsanizadi wrote:Hey Ed,

As far I understood, in Bullet if dynamic objects are not moved or collided for some time, they will sleep (i.e. they will set to non-dynamic due to some optimization reasons)
by the command below you can set your objects in the scene always awake.

yourRigidBody->setActivationState(4);

Do this for your falling object and ground object and post the feedback.
Ehsan
No, it makes no difference.
Edit:
Actually, I resolved the issue. The btBoxShape shape I was using before was too thin, so I just made it thicker.
Thanks for your help anyways ;)
Post Reply