mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Check for the use of an empty shape in Bullet Kinematic collisions
This commit is contained in:
parent
55faf1c874
commit
ff9a6c4e39
@ -1235,6 +1235,10 @@ bool SpaceBullet::recover_from_penetration(RigidBodyBullet *p_body, const btTran
|
||||
continue;
|
||||
}
|
||||
|
||||
if (kin_shape.shape->getShapeType() == EMPTY_SHAPE_PROXYTYPE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
btTransform shape_transform = p_body_position * kin_shape.transform;
|
||||
shape_transform.getOrigin() += r_delta_recover_movement;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user