godot/core/math
Pasi Nuutinmaki f8c4ffcdde
Fix area calculation of Face3
There seemed to be a bug in area calculation in Face3::get_area()-function. It returned the area of "imaginary" parallelogram instead of the triangle. Therefore the area returned was twice the real area. This manifested itself when using a hydro module for godot ( https://gitlab.com/ringtechsolutions/godot-tools/hydro/hydro ) causing the buoyancy to be two times the expected value.

"Reference": http://www.maths.usyd.edu.au/u/MOW/vectors/vectors-11/v-11-7.html

(cherry picked from commit a165eed73b)
2021-04-29 11:10:50 +02:00
..
a_star.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
a_star.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
aabb.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
audio_frame.h Make audio bus channels' peak volume consistent 2021-02-05 09:26:09 +01:00
basis.cpp Improve some argument names for core types 2021-04-23 15:34:24 +02:00
basis.h Improve some argument names for core types 2021-04-23 15:34:24 +02:00
bsp_tree.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bsp_tree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
bvh.h BVH - prevent self collisions 2021-04-04 09:13:58 +01:00
bvh_abb.h doc: Sync classref with current source 2021-01-13 16:55:27 +01:00
bvh_cull.inc BVH render tree new updating scheme 2021-01-19 14:24:32 +00:00
bvh_debug.inc BVH - fix physics expecting plus one based IDs. 2021-01-14 13:26:44 +00:00
bvh_integrity.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_logic.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_misc.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_pair.inc BVH fix pairing AABB init and mask checks 2021-01-28 14:01:03 +00:00
bvh_public.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_refit.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_split.inc Dynamic BVH for rendering and godot physics 2021-01-12 12:12:10 +00:00
bvh_structs.inc BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
bvh_tree.h BVH add support for visibility (activation) 2021-01-30 13:21:40 +00:00
camera_matrix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
camera_matrix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
delaunay.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
disjoint_set.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
expression.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
face3.cpp Fix area calculation of Face3 2021-04-29 11:10:50 +02:00
face3.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
geometry.cpp Geometry2D::make_atlas Fail is passed invalid rect size 2021-02-25 15:14:32 +01:00
geometry.h Cylinder support in Godot Physics 3D 2021-02-18 08:44:23 -07:00
math_defs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_fieldwise.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
math_funcs.h GDScript: Clarified/fixed inaccuracies in the built-in function docs. 2021-02-11 13:12:06 +01:00
octree.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
octree_definition.inc Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
plane.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quat.cpp Improve some argument names for core types 2021-04-23 15:34:24 +02:00
quat.h Improve some argument names for core types 2021-04-23 15:34:24 +02:00
quick_hull.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
quick_hull.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_number_generator.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
random_pcg.cpp Make randomize() use unix time too 2021-04-23 21:50:34 +02:00
random_pcg.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rect2.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
transform.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform_2d.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
transform_2d.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangle_mesh.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
triangulate.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
vector2.cpp Improve some argument names for core types 2021-04-23 15:34:24 +02:00
vector2.h Improve some argument names for core types 2021-04-23 15:34:24 +02:00
vector3.cpp Improve some argument names for core types 2021-04-23 15:34:24 +02:00
vector3.h Improve some argument names for core types 2021-04-23 15:34:24 +02:00