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?
Objects randomly drop through ground
-
- Posts: 72
- Joined: Mon Dec 02, 2013 4:13 pm
Re: Objects randomly drop through ground
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
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
Re: Objects randomly drop through ground
No, it makes no difference.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
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