kobewi
34b485d62b
Remove empty constructors and destructors from scene/
2025-05-06 14:46:54 +02:00
funkysandwich
721b1a3d64
Fix AudioStreamPlayer3D's layer_mask property using the wrong property hint
...
Also remove unnecessary physics layer property hints from some bool properties on raycast and shapecast nodes
2025-05-05 10:58:46 -05:00
lawnjelly
a2b340a548
FTI - Add custom interpolation for wheels
2025-04-30 12:17:25 +01:00
Thaddeus Crews
b7d4426fff
Merge pull request #104269 from lawnjelly/fti_scene_tree4
...
Physics Interpolation - Move 3D FTI to `SceneTree`
2025-04-28 10:01:34 -05:00
lawnjelly
ae04a3a5dd
Physics Interpolation - Move 3D FTI to SceneTree
...
Moves 3D interpolation from server to the client code (`SceneTree`).
Complete rework of 3D physics interpolation, but using the same user API.
2025-04-26 14:13:30 +01:00
Thaddeus Crews
ad40939b6f
Core: Replace C math headers with C++ equivalents
...
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Thaddeus Crews
94282d88f9
Core: Use Math namespace for constants
2025-04-10 16:29:30 -05:00
Thaddeus Crews
171187d1aa
Merge pull request #101011 from aaronfranke/limit-max-contacts-reported
...
Place a hard limit on the `max_contacts_reported` property in 2D/3D physics
2025-04-09 18:11:53 -05:00
Silc Lizard (Tokage) Renew
96200abb97
Add p_delta argument to _process_modification() and expose advance()
2025-04-03 23:58:54 +09:00
Yufeng Ying
4f4031a675
Replace size() == 0 with is_empty().
2025-04-02 19:18:43 +08:00
Michael Alexsander
556933306a
Allow to compile templates without navigation features
2025-04-01 11:53:35 -03:00
Thaddeus Crews
8f6bb119f4
Merge pull request #100602 from KoBeWi/over_100_changes_in_50_random_files_aka_the_best_kind_of_PR
...
Add templated version of `ObjectDB::get_instance()`
2025-03-31 12:03:47 -05:00
Aaron Franke
a5de242a2f
Place a hard limit on the max_contacts_reported property
2025-03-29 01:17:55 -07:00
Michael Alexsander
5ad414d046
Allow to compile templates without physics servers
2025-03-28 11:00:44 -03:00
kobewi
bc9d0c7835
Add templated version of ObjectDB::get_instance()
2025-03-27 15:43:23 +01:00
kobewi
10f6c01b9c
Remove ABS in favor of Math::abs
2025-03-19 13:52:40 +01:00
drakeerv
6f25aee04f
Fix get_rpm() on wheel which has steering
...
This fixes #101646 .
2025-03-18 13:55:26 +01:00
Mike Estee
d39003c0bf
Fix console errors and crash in cleanup code for PhysicalBoneSimulator3D
2025-03-14 11:01:34 +01:00
Thaddeus Crews
324512e11c
Style: Replace header guards with #pragma once
2025-03-07 17:33:47 -06:00
BattyBovine
a3ef9de6a8
Add debug colours and fills to CollisionPolygon3D.
...
This brings CollisionPolygon3D up to feature parity with its counterpart
CollisionShape3D. Closes #101414 .
In addition, adding this feature fixes the issue that CollisionPolygon3D
would never be rendered in exported builds, even if Visible Collision Shapes
is enabled at runtime. Closes #101413 .
2025-01-20 18:27:05 -05:00
smix8
0ed2cb0439
Make nodes handle their respective navigation source geometry
...
Makes nodes handle their respective navigation source geometry.
2025-01-12 13:14:46 +01:00
Thaddeus Crews
df2b117ec2
Merge pull request #100317 from TCROC/fix-collision-shape-debug-color-breaks-gdextension
...
Fix collision shape debug color breaking GDExtension
2024-12-30 08:58:41 -06:00
A Thousand Ships
a1846b27ea
Improve use of Ref.is_null/valid
...
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Travis Lange
f0c077deb8
fix collision shape debug color breaking gdextension
2024-12-23 15:02:54 -05:00
Yufeng Ying
73d85f46c9
Remove unused headers in scene.
...
Co-authored-by: Thaddeus Crews <repiteo@outlook.com >
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-12-24 00:40:09 +08:00
Rémi Verschelde
46c8f8c5c5
Merge pull request #100093 from dalexeev/fix-collision-shape-2d-3d-debug-color
...
Fix `CollisionShape{2D,3D}.debug_color` inconsistencies
2024-12-18 18:23:54 +01:00
YoSoyFreeman
72650f9787
Allow apply_floor_snap to preserve the horizontal position after the snapping independently of stop_on_slopes
2024-12-07 23:00:46 +01:00
Danil Alexeev
8bf2afd341
Fix CollisionShape{2D,3D}.debug_color inconsistencies
2024-12-06 15:12:20 +03:00
rune-scape
d58b2e879f
Get rid of easily removable uses of const_cast
2024-12-01 17:50:13 -08:00
Rémi Verschelde
88e81ee730
Fix various typos and code style issues
2024-11-28 17:40:42 +01:00
Jamie Greunbaum
0fc082e1ee
Add CollisionShape3D custom debug colours
...
This allows changing the display colour of a CollisionShape3D node on a per-shape basis.
It also adds the ability to display a solid coloured preview of a CollisionShape3D.
Closes https://github.com/godotengine/godot-proposals/issues/906
2024-11-26 16:28:13 +01:00
Thaddeus Crews
0ad3181d14
Merge pull request #98951 from AThousandShips/fix_more_super_call
...
Fix a few more super calls in `get_configuration_warnings` methods
2024-11-12 09:27:33 -06:00
Thaddeus Crews
925b690c98
Core: Integrate Ref::instantiate where possible
2024-11-10 12:41:26 -06:00
A Thousand Ships
26938086eb
Fix a few more super calls in get_configuration_warnings methods
...
A few missed last pass and one incorrect from that pass
2024-11-08 14:58:37 +01:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files
2024-09-25 09:34:35 -05:00
lawnjelly
6764338e09
Fix physics platform behaviour regression
...
Lifetime checks for stored `RIDs` for collision objects assumed they had valid `object_ids`.
It turns out that some are not derived from `Object` and thus checking `ObjectDB` returns false for some valid `RIDs`.
To account for this we only perform lifetime checks on valid `object_ids`.
2024-09-23 10:56:24 +01:00
Aaron Franke
e3895e0ca2
Add units to VehicleWheel3D suspension stiffness and damping
2024-09-17 03:22:50 -07:00
A Thousand Ships
9dc231366d
Fix super call in various get_configuration_warnings methods
2024-09-05 16:08:35 +02:00
Rémi Verschelde
9725c03228
Merge pull request #93900 from TestSubject06/10106/raycast_info_on_wheels
...
Expose contact point and contact normal on VehicleWheel3D to scripting.
2024-08-29 10:36:30 +02:00
TestSubject06
b56a0370c4
Expose contact point and contact normal on VehicleWheel3D
...
Appease doctool by switching the order of the documentation page entries.
Update doc/classes/VehicleWheel3D.xml
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro >
Update doc/classes/VehicleWheel3D.xml
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro >
Update doc/classes/VehicleWheel3D.xml
Thanks, didn't see the typo in the suggested change. Brain auto corrected it.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com >
2024-08-28 10:28:56 -04:00
Raul Santos
e47ff98451
Expose ShapeCast{2D,3D}::get_collision_result
2024-08-15 16:20:13 +02:00
Jamie Pate
eb5f1299b2
Fix dynamic-stack-buffer-overflow crash when executing random functions on random physics objects
...
Fixes #92333
This looks correct, and fixes the ASAN assertion I'm currently getting
in my program.
2024-07-18 19:22:03 -07:00
Silc Lizard (Tokage) Renew
793f3832e5
Rework migration of animate_physical_bones to compatibility
2024-06-25 18:54:59 +09:00
Silc Lizard (Tokage) Renew
a57f9f863d
Add get_concatenated_bone_names() to Skeleton3D for Modifier's hint
2024-06-10 10:19:36 +09:00
jsjtxietian
2546dada75
Fix null debug_shape being updated when CollisionObject3D's transform changed
2024-05-24 12:56:20 +08:00
Rémi Verschelde
77470740de
Merge pull request #91936 from jsjtxietian/body-connect
...
Avoid duplicate connect in Joint2D and Joint3D `_update_joint`
2024-05-15 12:09:50 +02:00
jsjtxietian
51bc55598c
Avoid duplicate connect in Joint2D::_update_joint and Joint3D
2024-05-15 11:57:51 +08:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
kobewi
a262d2d881
Add shorthand for using singleton string names
2024-05-11 18:53:08 +02:00
Ricardo Buring
80c600d86b
Fix move_and_slide wall slide acceleration (3D)
...
When travel is high enough, keep the global position resulting from the
move_and_collide call, and set the motion to the remainder from the
move_and_collide call. This ensures travel is taken into account once,
rather than twice.
2024-04-19 19:40:01 +02:00