Skip to content

Commit

Permalink
Merge pull request godotengine#37064 from GNSS-Stylist/Face3_area_cal…
Browse files Browse the repository at this point in the history
…c_fix_clean

Fix area calculation of Face3
  • Loading branch information
akien-mga authored Apr 28, 2021
2 parents 35a8693 + a165eed commit f879a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/math/face3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f879a08

Please sign in to comment.