-
Loading in a bunch of models to build out a scene. GLTF/GLB models loaded via ThreeJS. How do we convert ThreeJS object geometries to Jolt static rigid bodies? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
jrouwe
Mar 12, 2025
Replies: 1 comment 1 reply
-
Currently there is no direct interop between Jolt and Three/gltf so you would need to e.g. extract the faces and vertices from the models to create corresponding Jolt meshes. To create a mesh you use something like: JoltPhysics.js/Examples/js/example.js Line 334 in 04e74a2 I'm open to contributions in that area. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gigablox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently there is no direct interop between Jolt and Three/gltf so you would need to e.g. extract the faces and vertices from the models to create corresponding Jolt meshes. To create a mesh you use something like:
JoltPhysics.js/Examples/js/example.js
Line 334 in 04e74a2
I'm open to contributions in that area.