The contact points have been not removed cleanly when two objects are separated!

Post Reply
Winson
Posts: 8
Joined: Thu Apr 09, 2020 8:43 am

The contact points have been not removed cleanly when two objects are separated!

Post by Winson »

Hello everyone,

I create a btPairCachingGhostObject object as sensor and a btRigidBody object.
Then, I control the rigid body to move along X-axis (move 0.005m each time) until colliding with sensor.

A illogical issue has been found:
When the rigid body passes through the sensor from left to right, the contact points have been not removed cleanly!
The following are the moving process of rigid body:
Image

Image

Image

Image

Image


By the way, rigid body enters the sensor from the left side and collides with it.Rigid body doesn't go over the sensor center and then move out from the left.
This situation is logical that all of the contact points have been removed cleanly!
The following is the record of this situation:
Image


Is it something wrong with Bullet collision detection algorithm?
I think this issue is casued by btBoxBoxCollisionAlgorithm doesn't compute correct contact point loction and normal vector.


Thanks help.

Here is my test code
Attachments
BasicExample.cpp
(7.5 KiB) Downloaded 16 times
Post Reply