Repository: godotengine/godot (language: cpp)

Issue:
Invalid mass error when using a `ConcavePolygonShape3D` as the collision for a `Area3D` in Jolt Physics
### Tested versions

- 4.4.beta

### System information

Windows 11 (build 22621) - Vulkan (Forward+)

### Issue description

Jolt Physics gives an error when I use a `ConcavePolygonShape3D` generated from a mesh as the collision shape for an `Area3D`.

```cmd
ERROR: modules\jolt_physics\jolt_globals.cpp:79 - Jolt Physics assertion 'inMassProperties.mMass > 0.0f' failed with message 'Invalid mass.
Some shapes like MeshShape or TriangleShape cannot calculate mass automatically, in this case you need to provide it by setting BodyCreationSettings::mOverrideMassProperties and mMassPropertiesOverride.' at 'thirdparty\jolt_physics\Jolt\Physics\Body\MotionProperties.cpp:31'
```

The error doesn't make much sense since mass is not relevant for `Area3D` and it doesn't happen when using the shape with static or rigidbody nodes.

### Steps to reproduce

- Open "boulder.tscn" in the MRP.

### Minimal reproduction project (MRP)

[jolt-error.zip](https://github.com/user-attachments/files/18507550/jolt-error.zip)


Discussion / hints:
CC @mihe 

Fix patch:
diff --git a/modules/jolt_physics/objects/jolt_area_3d.cpp b/modules/jolt_physics/objects/jolt_area_3d.cpp
index eeaeca0faa1e..145f18667e7d 100644
--- a/modules/jolt_physics/objects/jolt_area_3d.cpp
+++ b/modules/jolt_physics/objects/jolt_area_3d.cpp
@@ -92,6 +92,9 @@ void JoltArea3D::_add_to_space() {
 	jolt_settings->mMotionType = _get_motion_type();
 	jolt_settings->mIsSensor = true;
 	jolt_settings->mUseManifoldReduction = false;
+	jolt_settings->mOverrideMassProperties = JPH::EOverrideMassProperties::MassAndInertiaProvided;
+	jolt_settings->mMassPropertiesOverride.mMass = 1.0f;
+	jolt_settings->mMassPropertiesOverride.mInertia = JPH::Mat44::sIdentity();
 
 	if (JoltProjectSettings::areas_detect_static_bodies()) {
 		jolt_settings->mCollideKinematicVsNonDynamic = true;


Test patch: