Merge pull request #57318 from TechnoPorg/fix-face-area-calculation

This commit is contained in:
Rémi Verschelde 2022-01-28 10:28:19 +01:00 committed by GitHub
commit 6ff6ec612d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.