summaryrefslogtreecommitdiff
path: root/scene/3d/physics_body_3d.cpp
AgeCommit message (Collapse)Author
2023-04-03Fixed property hint for platform layers on 3D physics bodyBrennen Shaughnessy
(cherry picked from commit 2d16fe681d25d4119099e876ef809358cc45fa8a)
2023-03-30Exposes the apply_floor_snap function to allow a snap to be made regardless ↵fabriceci
of velocity. (cherry picked from commit 1381e6da4f695323853b24cf8d3632604b629133)
2023-01-31Fix AnimatableBody3D not being movable in editoraXu-AP
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-23Merge pull request #67847 from rburing/warn_non-uniformistsRémi Verschelde
Warn against using non-uniform scale for 3D physics (in the editor and class reference)
2023-01-07Error when removing a phycics node during a physics callbackJuan Linietsky
* This behavior is not allowed, the error text suggests using call_deferred(). * Added a check in Node::remove_child to prevent future crashes of this type. * Fixed a performance regression introduced by #36244. Fixes #63718, probably other crashes too.
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-05Test joint type on _set for PhysicalBone jointsJoJoX
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
2022-12-29Add safety-checks before some servers `free()`Adam Scott
2022-11-20Merge pull request #68886 from timothyqiu/motion-distanceRémi Verschelde
Revert move vector parameter name to "motion"
2022-11-19Improve collision exception error messages for easier understandingHugo Locurcio
2022-11-19Revert move vector parameter name to motionHaoyu Qiu
2022-10-24Warn against using non-uniform scale for 3D physicsRicardo Buring
Using non-uniform scale is known to cause many issues. Add warnings to the editor and to the class reference. Also remove the warning from SoftBody3D since it is not relevant there: it simulates in global space.
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-05Revert "Turn on recovery as collisions only for floor snapping as this leads ↵Ricardo Buring
to unwanted behaviour for other surface than the floor." This reverts commit 10395f5df2a1cac6ed83e674c084e62a88fcdde9.
2022-09-22Merge pull request #66110 from Zylann/reference_get_countRémi Verschelde
get_reference_count()`
2022-09-21Rename and expose `RefCounted::get_reference_count()`Marc Gilleron
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-19Merge pull request #66112 from Zylann/get_configuration_warnings_psaRémi Verschelde
Change return type of `get_configuration_warnings` to `PackedStringArray`
2022-09-19Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron
2022-09-19Increases the number of maximum detected collisionsfabriceci
2022-09-18Turn on recovery as collisions only for floor snapping as this leads to ↵fabriceci
unwanted behaviour for other surface than the floor.
2022-09-17Add recovery_as_collision in move_and_collide/test_movefabriceci
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-02Rename `or_lesser` range property hint to `or_less`Hugo Locurcio
"less" should be used for quantity, rather than "lesser". Existing scripts that use `or_lesser` in `_get_property_list()` will need to be updated to account for this change.
2022-09-02Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl
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-25Merge pull request #64802 from benbot/masterRémi Verschelde
2022-08-25Shorten variable names for moving platforms in CharacterBodyfabriceci
2022-08-24removes unused skeleton functions and stray comments in RigidDynamicBody3Dbenbot
2022-08-24Improves the API for monitoring contacts in RigidDynamicBodyfabriceci
2022-08-24Adds a method to return the angular velocity of a platformfabriceci
2022-08-24Merge pull request #64009 from KoBeWi/arrayy_lmaoRémi Verschelde
Replace Array return types with TypedArray (part 2)
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-23Rename properties unnecessarily using slash (`/`) in their namesRémi Verschelde
This is a legacy of Godot 2 days before the inspector had support for groups. "Properties" with a slash in their name can't be accessed from script unless using `set()`/`get()` so they were not actual properties as far as script languages are concerned. Part of #17558.
2022-08-22Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde
2022-08-22Make `_validate_property` a multilevel methodYuri Sizov
2022-08-22Merge pull request #64343 from TokageItLab/priority-phRémi Verschelde
2022-08-18Remove unintentional PROPERTY_USAGE_INTERNALRedMser
The flag only matters for property definition, but was also used in _validate_property a lot.
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-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-06-11Add suffixes to all nodes and resourcesFireForge
2022-05-19Use suffixes for units in nodes and resourcesAaron Franke
2022-05-19Add dedicated macros for property name extractionHaoyu Qiu
* Replace case-by-case extraction with PNAME & GNAME * Fix group handling when group hint begins with property name * Exclude properties that are PROPERTY_USAGE_NO_EDITOR * Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-18Add motion parameter to toggle whether recovery is reported as a collisionRicardo Buring
This makes the intent explicit in each use case.
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!