Lukas Tönne LukasTonne
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-08 13:46:05 +02:00
2f4f29cc6d Fix missing initialization of the job system for Jolt.
7736704441 Avoid adding bodies to simulation twice (Jolt assert).
Compare 2 commits »
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 16:53:12 +02:00
2c5a56830a Replace outdated is_static attribute test.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 16:48:37 +02:00
ec0958f578 Fix expected values in tests.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 16:31:04 +02:00
0fec168ca2 Avoid Jolt assert when destroying an empty list of bodies.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 16:22:18 +02:00
613f5c1fc3 Implement inertia calculation using Jolt physics.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 15:35:02 +02:00
b2c397dfcc Clean up cache flags and copy function to fix some tests.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-07 07:48:43 +02:00
0dd1d5d83d Validation function for motion types to ensure correct values.
d4a955788b Fallback return values to silence warning.
9597c41d86 Fix deadlock: creating attribute cache does not require locking world data.
Compare 3 commits »
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-06 16:17:15 +02:00
97dc1a93a2 Replace is_static/is_kinematic bool attributes with a motion_type attribute.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-06 10:39:50 +02:00
c6b34198db Apply fix for deadlock to constraint providers as well.
c3b85a2c6f Fix Jolt assert when trying to remove constraints that have not been added to the world.
Compare 2 commits »
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-06 09:18:11 +02:00
78d5d5970f Use JPH::Ref for the default collision shape to prevent crash on exit.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-06 09:13:16 +02:00
e234e3ec5d Use unchecked motion property accessor to avoid Jolt asserts on static bodies.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-06 09:07:37 +02:00
de76c42657 Avoid deadlock during read-cache updates.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-05 11:11:33 +02:00
c9a2f45479 Add refcount for the static default shape to prevent freeing with the first body.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-05 10:57:53 +02:00
783c98c28d Several fixes and a test for deactivating bodies when they become static.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-03 18:26:37 +02:00
35b97ec5fa Use validation functions for writing to cached physics attributes.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-03 15:29:06 +02:00
624120d8f7 Use GArrays as storage for physics state caches instead of CustomData.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-02 15:38:13 +02:00
99dc0440e2 Special case for expected values of read-only attributes.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-02 10:18:55 +02:00
0da2f941b1 New test to read and write every attribute on active and inactive states.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-01 11:59:09 +02:00
d9e1966c18 Initialize constraints without trying to read from nullptrs.
Lukas Tönne pushed to physics-jolt-world-data at LukasTonne/blender 2024-09-01 11:26:45 +02:00
65c1578b11 Implement attribute providers for Jolt physics engine.