summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-28 10:28:19 +0100
committerGitHub <noreply@github.com>2022-01-28 10:28:19 +0100
commit6ff6ec612dfec8591045ba6f67645cca72889ac5 (patch)
tree55103283dc306ae5c7d4456e7033804cf863b46b /servers
parente6caaf4c800912517af783e90519cc2a70001e85 (diff)
parent02c002ff28cfe203b44cc45393ade6ce7569d8c8 (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.cpp2
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.