Getting Stuck issues with convexSweepTest

Post Reply
User avatar
Dragonlord
Posts: 198
Joined: Mon Sep 04, 2006 5:31 pm
Location: Switzerland
Contact:

Getting Stuck issues with convexSweepTest

Post by Dragonlord »

I'm reading things up for a release soon and one problem started to show up when I used convexSweepTest instead if my own collision tests. This is for kinematic collision hence no physics involved (think human actor movement).

If actors hit a wall bullet runs into a getting-stuck situation.

The first collision ends up at the wall at an exact touching position.

The next collision test registers a collision at 0 distance which is logic. The problem though is that if the actor moves away from the surface or normal to it (grazing it) bullet keeps on thinking this is a collision and everything gets stuck. In truth tough the actor would free itself by moving away from it but bullet does not want to accept this.

In my own collision routines I catered for this by not registering a collision if the actor moves out of the collision or is nearly perpendicular to the hit normal.

How can I solve this problem with bullet's convexSweepTest ? I tried the allowPenetration value but this only pushes the problem away a bit.
Post Reply