mirror of
https://github.com/godotengine/godot
synced 2024-09-05 18:29:41 +00:00
Merge pull request #37064 from GNSS-Stylist/Face3_area_calc_fix_clean
Fix area calculation of Face3
This commit is contained in:
commit
f879a08a62
|
@ -169,7 +169,7 @@ Vector3 Face3::get_median_point() const {
|
|||
}
|
||||
|
||||
real_t Face3::get_area() const {
|
||||
return vec3_cross(vertex[0] - vertex[1], vertex[0] - vertex[2]).length();
|
||||
return vec3_cross(vertex[0] - vertex[1], vertex[0] - vertex[2]).length() * 0.5;
|
||||
}
|
||||
|
||||
ClockDirection Face3::get_clock_dir() const {
|
||||
|
|
Loading…
Reference in a new issue