You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #55180 from madmiraal/fix-42711
This commit is contained in:
@@ -92,8 +92,8 @@ void AreaBullet::dispatch_callbacks() {
|
|||||||
overlapping_shapes.remove(i); // Remove after callback
|
overlapping_shapes.remove(i); // Remove after callback
|
||||||
break;
|
break;
|
||||||
case OVERLAP_STATE_INSIDE: {
|
case OVERLAP_STATE_INSIDE: {
|
||||||
if (otherObj.object->getType() == TYPE_RIGID_BODY) {
|
if (overlapping_shape.other_object->getType() == TYPE_RIGID_BODY) {
|
||||||
RigidBodyBullet *body = static_cast<RigidBodyBullet *>(otherObj.object);
|
RigidBodyBullet *body = static_cast<RigidBodyBullet *>(overlapping_shape.other_object);
|
||||||
body->scratch_space_override_modificator();
|
body->scratch_space_override_modificator();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -276,7 +276,7 @@ void AreaBullet::set_param(PhysicsServer3D::AreaParameter p_param, const Variant
|
|||||||
default:
|
default:
|
||||||
WARN_PRINT("Area doesn't support this parameter in the Bullet backend: " + itos(p_param));
|
WARN_PRINT("Area doesn't support this parameter in the Bullet backend: " + itos(p_param));
|
||||||
}
|
}
|
||||||
scratch();
|
isScratched = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Variant AreaBullet::get_param(PhysicsServer3D::AreaParameter p_param) const {
|
Variant AreaBullet::get_param(PhysicsServer3D::AreaParameter p_param) const {
|
||||||
@@ -312,7 +312,7 @@ void AreaBullet::set_event_callback(Type p_callbackObjectType, const Callable &p
|
|||||||
set_godot_object_flags(get_godot_object_flags() | GOF_IS_MONITORING_AREA);
|
set_godot_object_flags(get_godot_object_flags() | GOF_IS_MONITORING_AREA);
|
||||||
} else {
|
} else {
|
||||||
set_godot_object_flags(get_godot_object_flags() & (~GOF_IS_MONITORING_AREA));
|
set_godot_object_flags(get_godot_object_flags() & (~GOF_IS_MONITORING_AREA));
|
||||||
clear_overlaps(true);
|
clear_overlaps();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user