summaryrefslogtreecommitdiff
path: root/modules/bullet
AgeCommit message (Collapse)Author
2020-12-19Merge pull request #43898 from madmiraal/fix-43852Rémi Verschelde
Remove any constraints connected to a Bullet body when removing it
2020-12-18SCons: Add explicit dependencies on thirdparty code in cloned envRémi Verschelde
Since we clone the environments to build thirdparty code, we don't get an explicit dependency on the build objects produced by that environment. So when we update thirdparty code, Godot code using it is not necessarily rebuilt (I think it is for changed headers, but not for changed .c/.cpp files), which can lead to an invalid compilation output (linking old Godot .o files with a newer, potentially ABI breaking version of thirdparty code). This was only seen as really problematic with bullet updates (leading to crashes when rebuilding Godot after a bullet update without cleaning .o files), but it's safer to fix it everywhere, even if it's a LOT of hacky boilerplate.
2020-12-15Remove Generic6DOFJoint precision propertyMarcel Admiraal
2020-11-26Remove any constraints connected to a Bullet body when removing itMarcel Admiraal
2020-11-25Fixed ccd enabled by default on Bullet bodiesPouleyKetchoupp
It was due to main_shape_changed being called two times for each added body. The first time it disables ccd, which sets the internal ccd threshold to be 10000. The second time, it enables ccd again because the internal threshold is > 0. Bodies are now consistently set with a ccd threshold of 0 when ccd is disabled. This was causing crashing asserts in Bullet when adding bodies in some scenarios, in btVector3::normalize(): btAssert(!fuzzyZero()); These crashes will still happen with ccd enabled.
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