summaryrefslogtreecommitdiff
path: root/servers/physics_3d
AgeCommit message (Collapse)Author
2023-01-07Merge pull request #70858 from Malcolmnixon/fast-concave-supportRémi Verschelde
Optimize GodotConvexPolygonShape3D::get_support
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03Merge pull request #63650 from fabriceci/apply-moving-platform-angular-velocityRémi Verschelde
Allow to apply the angular velocity of a moving platform
2023-01-02Micro-optimizations of the GodotConvexPolygonShape3D::get_support function. ↵Malcolm Nixon
Specifically this uses pointer-array-dereference rather than LocalVector<T> dereference as this performs range-checking on known-good indexes. Added more comments. Changed loops back to classic for-iteration style.
2022-12-27Remove unnecessary bail-out if shape A is concave. The test for A being ↵Malcolm Nixon
concave is already performed later.
2022-12-16Fix regression 70154 caused by my prior CCD fix.Geekotron
At high velocities `from - motion *.1` is *behind the RB* - not within its collider as the comment suggested - so it could not be used for determining movement length
2022-12-13Fix Physics3D and Physics2D CCD sometimes adjusting velocity too much ↵Geekotron
(preventing collision) or not enough (allowing tunneling)
2022-12-11Add PropertyInfo overload for GLOBAL_DEFkobewi
2022-12-11Merge pull request #69852 from rburing/heightmap_shape_typo_bugfixRémi Verschelde
Fix typo bug in heightmap shape
2022-12-10Fix typo bug in heightmap shapeRicardo Buring
2022-12-07Merge pull request #69674 from rburing/conStraintRémi Verschelde
Fix typo in physics step: contraint -> constraint
2022-12-06Merge pull request #69671 from rburing/cylinder-cylinder_sat_typoRémi Verschelde
Fix typo in cylinder-cylinder SAT collision solver
2022-12-06Fix typo in physics step: contraint -> constraintRicardo Buring
2022-12-06Fix typo in cylinder-cylinder SAT collision solverRicardo Buring
2022-12-06Fix collision detection for degenerate capsulesRicardo Buring
In GodotCapsuleShape3D::get_supports and GodotCapsuleShape2D::get_supports, return a point instead of an edge of length zero in case the capsule degenerates to a sphere or circle.
2022-11-21Code simplifications found by cppcheckMarkus Sauermann
They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables
2022-11-08Remove duplicate project settings definitionskobewi
2022-11-02Move EulerOrder enum to math_defs.h and global scopeAaron Franke
2022-10-31Add safety check for at least 2 nodes and 1 link to ↵Mark Riedesel
GodotSoftBody3D.reoptimize_link_order() before proceeding. Fixes #61474
2022-10-27Merge pull request #64382 from peastman/supportClay John
Optimized support function for large meshes
2022-10-19Fix RigidBody3D inertia calculationCykyrios
2022-10-18Optimized support function for large meshesPeter Eastman
2022-10-13Optimize Convex CollisionJuan Linietsky
Implements the Gauss Mapping optimization to SAT convex collision test. * Described [here](https://ubm-twvideo01.s3.amazonaws.com/o1/vault/gdc2013/slides/822403Gregorius_Dirk_TheSeparatingAxisTest.pdf) by Dirk Gregorius. * Requires adding of face information to edges in MeshData * Took the chance to convert MeshData to LocalVector for performance.
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-05Merge pull request #66720 from qarmin/unintialized_memoryRémi Verschelde
Remove usage of unitialized variables
2022-10-01Remove usage of unitialized variablesRafał Mikrut
2022-09-30Fix crash when executing `PhysicsServer2D.joint_clear`Haoyu Qiu
2022-09-28Merge pull request #66568 from rburing/cylinder_support_is_deadRémi Verschelde
`GodotCylinderShape3D::get_supports`: delete dead code
2022-09-28GodotCylinderShape3D::get_supports: delete dead codeRicardo Buring
2022-09-28Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable usedRémi Verschelde
2022-09-26Style: Cleanup header guards for consistencyRémi Verschelde
Fix file names for {Static,Lightmap}RaycasterEmbree.
2022-09-25Add `area_get_collision_layer` and `area_get_collision_mask`Mansur Isaev
2022-09-21Merge pull request #65828 from rburing/body_state_sync_callableRémi Verschelde
make `body_set_state_sync_callback` take a `Callable`
2022-09-19Warn users when collisions are not supportedfabriceci
2022-09-15PhysicsServer2D and PhysicsServer3D: make body_set_state_sync_callback take ↵Ricardo Buring
a Callable Prefer Callable to a C-style callback. This is helpful for GDExtension.
2022-09-02Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl
2022-08-27Fix collision solving between world boundary and motion shapeRicardo Buring
2022-08-26Merge pull request #64367 from Mickeon/rename-var-to-strRémi Verschelde
Rename `str2var` to `str_to_var` and similar
2022-08-26Rename `str2var` to `str_to_var` and similarMicky
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
2022-08-26Restore RigidBody2/3D, SoftBody names in physicsfabriceci
2022-08-24Adds a method to return the angular velocity of a platformfabriceci
2022-08-18Add collision weight to PhysicsBody for penetrations must be avoidedSilc Renew
Co-authored-by: Juan Linietsky <reduzio@gmail.com>
2022-08-10add get_depth() to KinematicCollision3D as same of 2DSilc Renew
2022-08-07Add area monitor callback error checkingRyan Heath
2022-07-29Remove Signal connect bindsJuan Linietsky
Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
2022-07-25Remove ThreadWorkPool, replace by WorkerThreadPoolJuan Linietsky
The former needs to be allocated once per usage. The later is shared for all threads, which is more efficient. It can also be better debugged.
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-05-28Add a 3D suffix to relevant physics profiler categoriesHugo Locurcio
2D physics categories already had a 2D suffix: "Physics 2D"