@kdpisda Change is here: https://t.co/uiJ99Av8UD. Main thing was that _mm_xor_ps(_mm_set_ps(-0.0f, 0.0f, 0.0f, 0.0f), m3); (flipping the sign bit) got compiled to _mm_xor_ps(_mm_set_ps(0.0f, 0.0f, 0.0f, 0.0f), m3);
Released Jolt Physics v5.7.0. Main reason is that an MSVC update changed the behavior of /fp:fast and completely broke the simulation. So better update :)
https://t.co/hWwvBFkFiX
@erin_catto I agree. But there are still many people who use their own build system and who use this flag (including my work) so I try to keep it working.
Got SDF collision mesh generation (via marching cubes) working with Jolt Physics!
The collision mesh is regenerated when the SDF scene changes. Individual SDF primitives can be made "dynamic", which adds them as physics objects.
1/
@dzmitryj_ Unfortunately the GPU raycasts never made it because the overhead of going to the GPU and back was too much at the time. Someday they will be back though!
Jolt Physics just hit 10K GitHub stars! What started in 2014 as a CPU vs GPU ray casting experiment became a full physics engine in 2021. Seeing what you’re building with it is amazing. Thank you!
@BattleAxeVR It references your original shape, so no triangles are duplicated. If you use non-uniform scale on CompoundShapes then it may create a new CompoundShape, but whatever is in the CompoundShape will not be duplicated.
@BattleAxeVR About the convex hulls: PhysX is using 'convex decomposition' (creating multiple convex hulls). Jolt only creates a single convex hull. You'll need another library to do the decomposition, e.g. https://t.co/mv2YWonX2O
@BattleAxeVR There is the JoltViewer, but it doesn't connect over a socket like PVD does, it reads from a file that you can produce with DebugRendererRecorder. I usually just draw physics object in the game window using the DebugRenderer.
@BattleAxeVR You wrap a MeshShape in a ScaledShape (which is a tiny class). There's an example of dynamicaly scaling an object here: https://t.co/5JDbOwV5fB
@BattleAxeVR What's wrong with the convex hull generation code? Send me the points that cause issues and I'll take a look. (Note that I did a tweak to the generator this week)