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
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
yds
4077129f9d
Fix RayCast3D's debug draw transform not updating
2024-04-17 11:21:53 -03:00
Haoyu Qiu
4176102a5e
Store ObjectID instead of pointer for KinematicCollision owner
2024-04-15 12:28:36 +08:00
Silc Lizard (Tokage) Renew
04dd299cba
Skeleton3D: Add SkeletonModifier / Deprecate Override / Separate PB
2024-04-05 01:28:26 +09:00
kobewi
25f9f923a1
Rename some arguments called "position"
2024-03-27 01:28:24 +01:00
Rémi Verschelde
c6d5a782c7
Merge pull request #89468 from MrPersonDev/increase-rigidbody-mass-precision
...
Increase precision of RigidBody `mass` property
2024-03-14 22:35:16 +01:00
MrPersonDev
f63d76427d
Increase precision of rigidbody mass
2024-03-13 21:17:25 -07:00
Hugo Locurcio
b2a3e8cb34
Move Max Contacts Reported below Contact Monitor in RigidBody inspector
...
This also changes the code used to hide the custom center of mass
property for consistency with other places in the editor
(only this approach worked for Contact Monitor as well).
The Center of Mass property hint in RigidBody2D was also modified
for better usability.
2024-03-13 23:17:35 +01:00
lawnjelly
0b1266b812
Fix physics platform crash
...
Physics body previously stored the RID of a collision object and accessed it on the next frame, leading to a crash if the object had been deleted.
This PR checks the object still exists via the ObjectID prior to access.
2024-02-28 08:24:32 +00:00
smix8
f556d7a54b
Change ShapeCast3D and RayCast3D debug to use RenderingServer directly
...
Changes ShapeCast3D and RayCast3D debug to use RenderingServer directly.
2024-02-27 20:33:27 +01:00
smix8
35dafc9fa8
Split monolithic physics class files
...
Splits monolithic physics class files.
2024-02-27 11:18:16 +01:00