summaryrefslogtreecommitdiff
path: root/modules/bullet
AgeCommit message (Collapse)Author
2020-11-16Merge pull request #42167 from madmiraal/fix-42108Rémi Verschelde
Remove the unnecessary sync() and the restrictions it imposes on 3D Physics.
2020-11-07Reorganized core/ directory, it was too fatty alreadyreduz
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
2020-10-18Refactor MethodBind to use variadic templatesreduz
Removed make_binders and the old style generated binders.
2020-10-15Merge pull request #42649 from madmiraal/reapply-41806Rémi Verschelde
Reapply -Avoid adding margin twice along capsule Y axis
2020-10-13Merge pull request #42592 from madmiraal/fix-42567Rémi Verschelde
Initialise Bullet RigidBody friction to the expected value of 1.0
2020-10-08Reapply -Avoid adding margin twice along capsule Y axisMarcel Admiraal
Co-authored-by: Andrea Catania <info@andreacatania.com>
2020-10-08Fixed #41040 in an alternative way now that #39726 is revertedAndrea Catania
2020-10-08Revert "Optimized physics object spawn time and optimized shape usage when ↵Andrea Catania
the shape is not scaled" This reverts commit 7709a8349354b469361ec7e1429af0dc8af80b2a.
2020-10-08Revert "- Enhanced the flush mechanism by flushing only needed thing."Andrea Catania
This reverts commit 8d0d6d6921d5dfb398f4ab04e4d3937ab550c4ff.
2020-10-06Initialise Bullet RigidBody friction to the expected value of 1.0Marcel Admiraal
2020-10-02Updated getters and setters names for toplevelDuroxxigar
2020-10-02Check entire basis column for zero size when unscaling Bullet basis.Marcel Admiraal
2020-09-20Merge pull request #41426 from madmiraal/fix-bullet-zero-scaleRémi Verschelde
Check and correct for zero scaling when unscaling Bullet basis.
2020-09-18Remove the unnecessary sync() and the restrictions it imposes on 3D Physics.Marcel Admiraal
2020-09-14Fix RigidBodyBullet areasWhereIam element shift.Marcel Admiraal
2020-09-06Avoid adding margin twice along capsule Y axisAndrea Catania
2020-08-22Check and correct for zero scaling when unscaling Bullet basis.Marcel Admiraal
2020-08-05Merge pull request #40989 from madmiraal/fix-40739Andrea Catania
Reload Bullet space override modifier even when RigidBody is inactive.
2020-08-05Fixes leak when creating bullet shapeRafał Mikrut
2020-08-03Reload Bullet space override modifier even when RigidBody is inactive.Marcel Admiraal
2020-07-27Revert "Allow Area2D and 3D mouse events without a collision layer"Rémi Verschelde
This reverts commit 7eebb06b5571437828d8c5099558c303c72cd1f4.
2020-07-27Merge pull request #40252 from AndreaCatania/flushRémi Verschelde
Improved Bullet Physics flush algorithm, Lazy collision filter reload, Shape reload regression fix.
2020-07-27- Enhanced the flush mechanism by flushing only needed thing.Andrea Catania
- Flushing Areas before anything else. - Make sure to correctly fetch gravity when the integrate_forces function is used - Lazy reload body when layer and mask changes - Shapes are reloaded just before the physics step starts. - Improved some other parts of the code. - Added override keyword - Using LocalVector
2020-07-24Ensure Bullet HeightMapShape3D data width and depth are at least 2.Marcel Admiraal
2020-07-18Use difference in position to check whether motion in Bullet is too closeMarcel Admiraal
to zero.
2020-07-14Fix overlappingObjects vector crashvolzhs
use clear_overlaps() instead of clearing overlappingObjects directly
2020-07-12Set isScratchedSpaceOverrideModificator to false when removing aMarcel Admiraal
RigidBodyBullet from a space.
2020-07-11Merge pull request #40193 from KoBeWi/dem_pikksRémi Verschelde
Allow Area2D and 3D mouse events without collision layer
2020-07-10Add override keywords.Marcel Admiraal
2020-07-10Allow Area2D and 3D mouse events without a collision layerTomasz Chabora
Co-authored-by: madmiraal <madmiraal@users.noreply.github.com>
2020-07-08Move Bullet physics query flush from Bullet space pre-tick callback toMarcel Admiraal
Bullet physics flush_queries() as is done in Godot physics, and remove the pre-tick callback.
2020-07-07Merge pull request #39726 from AndreaCatania/add_body_impr_physicsRémi Verschelde
Optimized physics object spawn time
2020-07-07Merge pull request #39735 from AndreaCatania/bullet_phy_add_apiRémi Verschelde
Added BulletPhysics APIs to return internal objects.
2020-07-06Clear a Bullet Area's overlappingObjects vector when removing an areaMarcel Admiraal
from a space.
2020-07-02Merge pull request #37350 from aaronfranke/force-impulseRémi Verschelde
Refactor physics force and impulse code to use (force, position) order
2020-06-24Added BulletPhysics APIs to return internal objects and fixed a typo.Andrea Catania
2020-06-24Optimized physics object spawn time and optimized shape usage when the shape ↵Andrea Catania
is not scaled
2020-06-22Merge pull request #39747 from nekomatata/fix-crash-space-queryRémi Verschelde
Fix crashes with invalid shapes in BulletPhysicsDirectSpaceState queries
2020-06-22Fix crashes with invalid shapes in BulletPhysicsDirectSpaceState queriesPouleyKetchoupp
2020-06-21Merge pull request #34236 from madmiraal/enable-bullet-debugRémi Verschelde
Enable Bullet DEBUG on debug builds.
2020-06-21Check for motion in cast_motion() before doing Bullet convexSweepTest().Marcel Admiraal
Also ensure that default closest_safe and closest_unsafe values are defined in cast_motion() and before cast_motion() is called.
2020-06-02Refactor physics force and impulse codeAaron Franke
2020-05-29Merge pull request #39085 from madmiraal/fix-39059Rémi Verschelde
Correct Bullet's default Area angular damp value.
2020-05-27Split `Geometry` singleton into `Geometry2D` and `Geometry3D`Andrii Doroshenko (Xrayez)
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-27Correct Bullet's default Area angular damp value.Marcel Admiraal
2020-05-19Style: Fix unnecessary semicolons that confused clang-formatRémi Verschelde
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
2020-05-14Enforce use of bool literals instead of integersRémi Verschelde
Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html