1
0
Fork 0
Commit Graph

66 Commits

Author SHA1 Message Date
Mikael Hermansson b3ddb88035 Fix Area3D signal emissions when using Jolt Physics 2025-05-30 11:53:17 +02:00
Thaddeus Crews dcde70f409
Merge pull request #106693 from mihe/jolt/area-cleanup
Remove force enter/exit logic from `JoltArea3D`
2025-05-28 09:47:40 -05:00
Thaddeus Crews bb47f01481
Merge pull request #106390 from akien-mga/linux-drop-ppc32
Linux: Drop `ppc32` (32-bit PowerPC) architecture support
2025-05-28 09:47:34 -05:00
Thaddeus Crews 05ceab6b7b
Merge pull request #106321 from elzewyr/shrink-factor
SoftBody3D: Add a property for scaling rest lengths of edge constraints
2025-05-27 09:39:29 -05:00
Thaddeus Crews de2cd663fd
Merge pull request #100463 from PiCode9560/softbody-apply-force-and-impulse
Add ability to apply forces and impulses to `SoftBody3D`
2025-05-26 11:24:45 -05:00
Thaddeus Crews b8be0f1634
Merge pull request #106761 from mihe/jolt/move-only-shape-ref
Change `JoltShapeInstance3D` to use move semantics
2025-05-26 11:24:22 -05:00
Mikael Hermansson 92da11f69c Change `JoltShapeInstance3D` to use move semantics 2025-05-23 21:39:55 +02:00
PiCode fe3aaa2ae3 Add functions to apply impulse and force to SoftBody on GodotPhysics and JoltPhysics 2025-05-23 22:04:52 +03:00
Mikael Hermansson d153a267b0 Remove error for degenerate soft body faces when using Jolt Physics 2025-05-22 20:17:47 +02:00
Mikael Hermansson 3d98aaf728 Remove force enter/exit logic from `JoltArea3D` 2025-05-21 21:40:40 +02:00
Thaddeus Crews c225686e82
Merge pull request #106490 from mihe/jolt/non-monitoring-area-performance
Improve performance with non-monitoring areas when using Jolt Physics
2025-05-21 09:06:26 -05:00
Mikael Hermansson 617a39d5ea Improve performance with non-monitoring areas when using Jolt Physics 2025-05-20 13:20:12 +02:00
Elzewyr 9f67bf96fa SoftBody3D: Add a property for scaling rest lengths of edge constraints 2025-05-16 18:38:00 +03:00
Thaddeus Crews 5e27318b6c
Merge pull request #106366 from jrouwe/fix_106301
Jolt physics: Setting position instead of velocity in `JoltSoftBody3D::set_vertex_position`
2025-05-15 10:22:29 -05:00
Rémi Verschelde 1de9789806
Linux: Drop `ppc32` (32-bit PowerPC) architecture support
This was added together with `ppc64le` in #54490, but seemingly only for the
purpose of getting it to compile on a Linux distro that aims at maximizing
support for all CPU architectures.

I don't think anyone has ever _run_ Godot on a `ppc32` system (do those even
support OpenGL ES 3.0?) and so I don't think we should aim to support it.

Debian dropped support for its PowerPC (`ppc32`) arch in Debian 9, released
in 2017.
2025-05-14 10:22:12 +02:00
Thaddeus Crews f70420a8b1
Merge pull request #106346 from mihe/jolt/scu-support
Fix SCU build issues related to Jolt Physics
2025-05-13 16:22:26 -05:00
Jorrit Rouwe c529f36532 Jolt physics: Setting position instead of velocity in JoltSoftBody3D::set_vertex_position
This fixes a discrepancy between godot physics and Jolt physics where in Jolt a vertex pinned to a body only gets its velocity updated while in godot it gets its position updated. This causes it to lag one frame behind.

Fixes #106301
2025-05-13 22:45:58 +02:00
Adam Scott f114a8d1d1
Add WebAssembly SIMD support 2025-05-13 07:35:53 -04:00
Mikael Hermansson 9cea7ebc91 Fix SCU build issues related to Jolt Physics 2025-05-13 12:34:55 +02:00
Mikael Hermansson f539d0a447 Remove emitting of error in `JoltBody3D::_exit_all_areas` 2025-05-06 11:36:22 +02:00
Thaddeus Crews e939aefe2f
Merge pull request #105748 from mihe/jolt/body-pointer
Remove no-op locking in Jolt Physics module
2025-05-05 11:24:10 -05:00
Thaddeus Crews 01fc9aee6c
Core: Modernize C headers with C++ equivalents 2025-05-02 08:23:01 -05:00
Lukas Tenbrink 91362a61da Simplify `StringName` to `bool` conversions.
Move `mutex` include of `string_name.h` to `string_name.cpp`.
2025-04-30 16:59:34 +02:00
Mikael Hermansson 2b88477efc Remove no-op locking in Jolt Physics module 2025-04-29 12:23:24 +02:00
Thaddeus Crews 3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews 2d3bdcac35
Merge pull request #105470 from clayjohn/RID-owner-limit
Increase chunk limit for known problematic RID_Owners.
2025-04-18 12:21:30 -05:00
clayjohn 941ad15724 Increase chunk limit for known problematic RID_Owners.
The default limit is fine for most RID_Owners but 3d instances, CanvasItems, and physics bodies need a higher limit.

There is a small memory cost to increasing the limit, so it should only be done where needed.
2025-04-16 17:03:47 -07: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
Thaddeus Crews 2fe029ded8
Merge pull request #104449 from mihe/jolt/v5.3.0
Jolt: Update to 5.3.0
2025-04-04 09:29:20 -05:00
Thaddeus Crews f25fc34439
SCons: Add `CPPEXTPATH` for external includes 2025-04-02 07:29:08 -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
Mikael Hermansson 4b5661758f Fix `shape` always being zero with `get_rest_info` when using Jolt Physics 2025-03-25 12:35:01 +01:00
Thaddeus Crews f09ee0171a
Style: Begin integrating simple `.clangd` fixes 2025-03-22 13:24:35 -05:00
Mikael Hermansson 5d00161040 Jolt: Update to 5.3.0 2025-03-21 17:17:55 +01:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
metakunt 0c25ac8d44
Improve Jolt module initialization style 2025-03-18 13:53:30 +01:00
Mikael Hermansson 3603a5a9dd Fix `ConcavePolygonShape3D` always enabling `backface_collision` when using Jolt Physics 2025-03-18 12:26:31 +01:00
Thaddeus Crews 768d75a248
Merge pull request #101254 from mihe/jolt/better-settings
Refactor Jolt-related project settings to only be loaded as needed
2025-03-13 08:57:43 -05:00
Thaddeus Crews 324512e11c
Style: Replace header guards with `#pragma once` 2025-03-07 17:33:47 -06:00
Mikael Hermansson 62e8b1e5fd Fix broken negative scaling when using Jolt Physics 2025-03-02 01:14:19 +01:00
Mikael Hermansson 1006fa9c42 Skip `Object::to_string` when Jolt Physics is on separate thread 2025-02-11 22:55:32 +01:00
Mikael Hermansson 5d2a54e6b1 Improve performance of certain physics queries when using Jolt Physics 2025-02-11 11:52:05 +01:00
Thaddeus Crews b7deb853c9
Merge pull request #102029 from mihe/jolt/area-mass-properties
Override mass properties for `Area3D` when using Jolt Physics
2025-01-28 09:03:40 -06:00
Thaddeus Crews e5498020b6
Merge pull request #101815 from mihe/jolt/no-post-step
Refactor post-step operations in Jolt module to be done as needed
2025-01-26 11:49:21 -06:00
Mikael Hermansson f380b00351 Override mass properties for `Area3D` when using Jolt Physics 2025-01-25 18:15:50 +01:00
Mikael Hermansson a30410bbf5 Refactor post-step operations in Jolt module to be done as needed 2025-01-25 12:22:30 +01:00
Mikael Hermansson 3b78ff564a Refactor Jolt-related project settings to only be loaded as needed 2025-01-25 12:18:52 +01:00