You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Check for the use of an empty shape in Bullet Kinematic collisions
(cherry picked from commit ff9a6c4e39)
This commit is contained in:
committed by
Rémi Verschelde
parent
a3f4bd96c5
commit
1e28e234c5
@@ -1273,6 +1273,10 @@ bool SpaceBullet::recover_from_penetration(RigidBodyBullet *p_body, const btTran
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (kin_shape.shape->getShapeType() == EMPTY_SHAPE_PROXYTYPE) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
btTransform shape_transform = p_body_position * kin_shape.transform;
|
btTransform shape_transform = p_body_position * kin_shape.transform;
|
||||||
shape_transform.getOrigin() += r_delta_recover_movement;
|
shape_transform.getOrigin() += r_delta_recover_movement;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user