mirror of
https://github.com/godotengine/godot.git
synced 2025-01-12 20:22:49 +08:00
Ignore Bullet collision contact points with distance = 0
This commit is contained in:
parent
d55e335026
commit
27b52f6c46
@ -829,7 +829,7 @@ void SpaceBullet::check_body_collision() {
|
||||
btManifoldPoint &pt = contactManifold->getContactPoint(0);
|
||||
#endif
|
||||
if (
|
||||
pt.getDistance() <= 0.0 ||
|
||||
pt.getDistance() < 0.0 ||
|
||||
bodyA->was_colliding(bodyB) ||
|
||||
bodyB->was_colliding(bodyA)) {
|
||||
Vector3 collisionWorldPosition;
|
||||
|
Loading…
Reference in New Issue
Block a user