You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Ignore Bullet collision contact points with distance = 0
This commit is contained in:
@@ -829,7 +829,7 @@ void SpaceBullet::check_body_collision() {
|
|||||||
btManifoldPoint &pt = contactManifold->getContactPoint(0);
|
btManifoldPoint &pt = contactManifold->getContactPoint(0);
|
||||||
#endif
|
#endif
|
||||||
if (
|
if (
|
||||||
pt.getDistance() <= 0.0 ||
|
pt.getDistance() < 0.0 ||
|
||||||
bodyA->was_colliding(bodyB) ||
|
bodyA->was_colliding(bodyB) ||
|
||||||
bodyB->was_colliding(bodyA)) {
|
bodyB->was_colliding(bodyA)) {
|
||||||
Vector3 collisionWorldPosition;
|
Vector3 collisionWorldPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user