mirror of
https://github.com/godotengine/godot
synced 2024-09-15 21:59:57 +00:00
Merge pull request #57318 from TechnoPorg/fix-face-area-calculation
This commit is contained in:
commit
6ff6ec612d
|
@ -245,7 +245,7 @@ void GodotSoftBody3D::update_area() {
|
||||||
const Vector3 a = x1 - x0;
|
const Vector3 a = x1 - x0;
|
||||||
const Vector3 b = x2 - x0;
|
const Vector3 b = x2 - x0;
|
||||||
const Vector3 cr = vec3_cross(a, b);
|
const Vector3 cr = vec3_cross(a, b);
|
||||||
face.ra = cr.length();
|
face.ra = cr.length() * 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node area.
|
// Node area.
|
||||||
|
|
Loading…
Reference in a new issue