summaryrefslogtreecommitdiff
path: root/core/math
AgeCommit message (Collapse)Author
2018-03-13Merge pull request #17254 from Chaosus/updatewrapRémi Verschelde
Update wrap functions
2018-03-07Bring back Vector2.cross()Bernhard Liebl
2018-03-06Update wrap functionsChaosus
2018-02-28Allow degenerate triangles in polygon triangulation when necessary.Nicolas Silva
2018-02-05Fix polygon triangulation failure.Nicolas Silva
The ear clipping algorithm used to triangulate polygons has a slightly too conservative point-in-triangle test which can, in some configurations prevent it from finding a possible tessellation. Relaxing the test by considering that points exactly on edges don't belong the triangle fixes the issue. Changing the semantic of the test is safe because no other code makes use of it. A more detailed explanation can be found in issue #16395. Fixes #16395.
2018-01-18Fix typos in code and docs with codespellRémi Verschelde
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-03Merge pull request #15093 from poke1024/canvas-editor-selectRémi Verschelde
More exact picking for canvas editor
2018-01-02Merge pull request #15083 from tagcup/spatial_rot_fixJuan Linietsky
Restore the behavior of Spatial rotations recently changed in c1153f5.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-01-01Merge pull request #15091 from poke1024/fix-rect2-distance-toNoshyaar
Fix Rect2::distance_to() not returning 0
2017-12-27Restore the behavior of Spatial rotations recently changed in c1153f5.tagcup
That change was borne out of a confusion regarding the meaning of "local" in #14569. Affine transformations in Spatial simply correspond to affine operations of its Transform. Such operations take place in a coordinate system that is defined by the parent Spatial. When there is no parent, they correspond to operations in the global coordinate system. This coordinate system, which is relative to the parent, has been referred to as the local coordinate system in the docs so far, but this sloppy language has apparently confused some users, making them think that the local coordinate system refers to the one whose axes are "painted" on the Spatial node itself. To avoid such conceptual conflations and misunderstandings in the future, the parent-relative local system is now referred to as "parent-local", and the object-relative local system is called "object-local" in the docs. This commit adds the functionality "requested" in #14569, not by changing how rotate/scale/translate works, but by adding new rotate_object_local, scale_object_local and translate_object_local functions. Also, for completeness, there is now global_scale. This commit also updates another part of the docs regarding the rotation property of Spatial, which also leads to confusion among some users.
2017-12-27More exact picking for canvas editorBernhard Liebl
2017-12-27Fix Rect2::distance_to() not returning 0Bernhard Liebl
2017-12-27Merge pull request #15045 from poke1024/vector2-inlineNoshyaar
Inline some very common Vector2 operations
2017-12-26Change the rotate function of Spatial to be local, makes more sense. Closes ↵Juan Linietsky
#14569
2017-12-25Inline some very common Vector2 operationsBernhard Liebl
2017-12-25Add missing parameter namesPoommetee Ketson
2017-12-21Fixes grow_margin not working at allGilles Roudiere
2017-12-10Fix wrong return value in some virtual method bindingsRémi Verschelde
2017-12-09Merge pull request #13347 from Noshyaar/hang_in_thereRémi Verschelde
Rect2: add function returning same rect with positive w and h
2017-12-07Style: Apply new clang-format 5.0 style to all filesRémi Verschelde
2017-12-07Style: Apply clang-format again on all filesRémi Verschelde
Fixes issues introduced by newer clang-format versions or commits pushed directly without using the clang-format pre-commit hook.
2017-12-03Forgot to apply oversampling to YBastiaan Olij
2017-11-28Rect2: add function returning same rect with positive w and hPoommetee Ketson
2017-11-17Rename Rect3 to AABB.Ferenc Arn
Fixes #12973.
2017-11-12Add support for the TAU constant. Fixes #12094.Goutte
2017-11-09Remove get_default_video_mode definition on OSX/iOSRémi Verschelde
It had been missed in d09160a8b67fdc60e8108962c4e9bd4c0bc7f13e and broke compilation for those platforms. Took the opportunity to run clang-format on the code base to fix some corner cases that went through our static tests/were overlooked recently.
2017-11-04AStar: implementation of get_point_connectionsDmDerbin
2017-10-31Merge pull request #12035 from Chaosus/wrapfuncRémi Verschelde
Added new Wrap functions for numbers
2017-10-31Merge pull request #11249 from m4nu3lf/bugfix/get_eulerRémi Verschelde
Fix inertia tensor update & Generic6DOFJoint & Simplify Basis::get_euler()
2017-10-27AStar: Add setters for point position and scale weight, cleanupUnknown
2017-10-22Fixed memory leak with AStar classRobert Hernandez
2017-10-22Merge pull request #11401 from SaracenOne/snapped_dragRémi Verschelde
Added snapping to spatial drag and drop.
2017-10-13Added new wrap functionsChaosus
2017-10-11Added Basis::get_quat() and set_quat().Ferenc Arn
2017-09-22Fix Basis::get_euler_xyz()m4nu3lf
2017-09-20Merge pull request #11409 from MarufSarker/PR-core-math-is_nanRémi Verschelde
Verbose and Platform-specific implementation for is_nan
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
2017-09-20verbose and platform specific implementation for is_nanABU MD. MARUF SARKER
2017-09-20Added snapping to spatial drag and drop.SaracenOne
2017-09-19Fixed Typo: 'Seperate' to 'Separate'Indah Sylvia
2017-09-12Merge pull request #11049 from scayze/astar_get_pointsRémi Verschelde
Add get_points() method to AStar
2017-09-12Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde
Fix unused variable warnings
2017-09-08Fix unused variable warningsHein-Pieter van Braam
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08Fix serveral recent new clang-format errorsHein-Pieter van Braam
2017-09-07Several fixes to directional shadows, closes #10926Juan Linietsky
Added option to change directional light range mode, between optimized and stable. For Orthogonal, you might need to use optimized.
2017-09-07Add get_points method to AStarScayze
2017-09-04-Changed KinematicBody API yet again to make it friendlierJuan Linietsky
-Fixed get_scale functions (and added set_scale) to make it more coherent when decomposing and composing (fixes bugs in transform interpolation)
2017-09-02Fix use of unitialized variablesHein-Pieter van Braam
The second in my quest to make Godot 3.x compile with -Werror on GCC7