diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-28 10:28:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 10:28:19 +0100 |
commit | 6ff6ec612dfec8591045ba6f67645cca72889ac5 (patch) | |
tree | 55103283dc306ae5c7d4456e7033804cf863b46b /servers | |
parent | e6caaf4c800912517af783e90519cc2a70001e85 (diff) | |
parent | 02c002ff28cfe203b44cc45393ade6ce7569d8c8 (diff) |
Merge pull request #57318 from TechnoPorg/fix-face-area-calculation
Diffstat (limited to 'servers')
-rw-r--r-- | servers/physics_3d/godot_soft_body_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_3d/godot_soft_body_3d.cpp b/servers/physics_3d/godot_soft_body_3d.cpp index 1de27760d5..095050b7f3 100644 --- a/servers/physics_3d/godot_soft_body_3d.cpp +++ b/servers/physics_3d/godot_soft_body_3d.cpp @@ -245,7 +245,7 @@ void GodotSoftBody3D::update_area() { const Vector3 a = x1 - x0; const Vector3 b = x2 - x0; const Vector3 cr = vec3_cross(a, b); - face.ra = cr.length(); + face.ra = cr.length() * 0.5; } // Node area. |