Commit Graph

96 Commits

Author SHA1 Message Date
Mikael Hermansson a23717c8c6 Bind physics server methods related to shape margin 2024-05-19 12:28:26 +02:00
Ricardo Buring 38a31f4cb5 Bind constants related to 6DOF joints
This makes physics server GDExtensions able to use the enums without
workarounds.
2024-03-24 15:16:33 +01:00
Aaron Franke 6aac3e4a16 Disable all 3D nodes, physics, and resources when compiling without 3D 2024-03-11 01:00:55 -07:00
Mikael Hermansson 06f2f1ecbc Bind physics server methods related to SoftBody3D 2024-01-26 17:15:52 +01:00
Robert Borghese 7bf88df324 Fix PhysicsShapeQueryParameters3D.motion type wrongly set to Vector2 2024-01-02 12:30:35 +01:00
A Thousand Ships 95eafcba4c Fix missing clear for some set_exclude* query parameter methods 2023-09-21 13:30:57 +02:00
Mikael Hermansson ee9f41a12d Fix bindings of PhysicsServer3DRenderingServerHandler 2023-09-20 12:24:32 +02:00
PrecisionRender af7f787c6e Add ability to get barycentric coordinates from ray 2023-08-02 15:16:44 -05:00
Mikael Hermansson 4f9f4796f2 Change the "Physics Engine" project settings to prompt a restart 2023-06-04 17:24:42 +02:00
Tim Gift fffc6aba58 Resolved issues with script PhysicsDirectBodyState3d contacts
Resolved a problem with PhysicsDirectBodyState3D sometimes returning incorrect contact positions and added a new get_contact_local_velocity_at_position method to compliment the existing one for the collider.
2023-04-12 11:40:34 -07:00
Malcolm Nixon 1d1d3c71e0 Modify "physics/3d/solver/contact_max_allowed_penetration" precision to three significant digits, so values down to "0.001" can be specified.
Updated additional 2D and 3D physics parameters based on team recommendations

Co-Authored-By: Ricardo Buring <rburing@users.noreply.github.com>
2023-04-05 18:14:35 -04:00
Ricardo Buring 61429a5f49 Fix collide_shape return type
Fix PhysicsDirectSpaceState3D::_collide_shape return type.
Also PhysicsDirectSpaceState2D::_collide_shape.
2023-03-23 16:16:23 +01:00
Anthony Cossins ae282e9b7d Fix return type for collide_shape to use PackedVector3Array 2023-02-12 23:32:13 +00:00
smix8 026549db2e Create default World physics spaces on demand only
Changes that the default physics spaces of World resources are only created on first use.
2023-01-31 18:26:52 +01:00
Aaron Franke 79215131b5 Replace Area gravity point distance scale with unit distance 2023-01-29 22:12:00 -06:00
Aaron Franke 866e2b95dc Remove deprecated AREA_PARAM_GRAVITY_POINT_ATTENUATION 2023-01-29 22:12:00 -06:00
Rémi Verschelde 163f6f5fe8 Merge pull request #68429 from KoBeWi/PropertySettings
Add PropertyInfo overload for GLOBAL_DEF
2023-01-06 22:59:29 +01:00
Rémi Verschelde d95794ec8a One Copyright Update to rule them all
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-05 13:25:55 +01:00
Mikael Hermansson c1379523ea Bind methods related to disabling collision between joint bodies 2022-12-23 14:16:33 +01:00
kobewi 7c6b659bd7 Add PropertyInfo overload for GLOBAL_DEF 2022-12-11 21:36:48 +01:00
Ricardo Buring 4453d63bb0 Update remaining physics exclude parameters to use TypedArray
Also update the documentation to refer to the get_rid() method.
2022-11-23 19:39:04 +01:00
Raul Santos 82dac64659 Change exclude property in PhysicsRayQueryParameters3D to TypedArray
Change type of exclude property from `Vector<RID>` to `TypedArray<RID>` which is consistent with the 2D version.
2022-10-31 13:44:46 +01:00
Mikael Hermansson 8dc15aac38 Bind PhysicsDirectBodyState3D::get_inverse_inertia_tensor 2022-10-05 17:18:49 +02:00
Mansur Isaev efd4dc20a3 Add area_get_collision_layer and area_get_collision_mask 2022-09-25 14:34:35 +04:00
Ricardo Buring 532e378cd9 Expose registration of physics servers to GDExtension
This exposes PhysicsServer2DManager and PhysicsServer3DManager.
2022-09-07 15:05:46 +02:00