2014/08/28

Objects passes through in Bullet

My new developing app uses Bullet, which had a serious problem. One object sometimes passed through other object without collision.
I changed its weight larger, it worked a little, but there were problem yet.

And I found one page about Continuous Collision Detection, and I set next two lines :
{
    body->setCcdSweptSphereRadius(radius);
    body->setCcdMotionThreshold(threshold);
}
Much better! The problem has almost disappeared.
Develop | Comments(0) | Trackback(0)
Comment

管理者のみに表示