Closed yankscally closed 3 months ago
https://github.com/omigroup/gltf-extensions/blob/main/extensions/2.0/OMI_physics_shape/examples/convex/convex_hull.gltf
"OMI_physics_shape": { "shapes": [ { "type": "convex", "convex": { "mesh": 0 } } ] }
convex hull
"extensions":{ "OMI_physics_shape":{ "shapes":[ { "type":"box", "box":{ "size":[1,1,1] } } ] } },
box
convex hull requires connecting the indexes, which basically means we need to keep count of the IDs of all the geometry objects.
trying to get convex shapes working, but im having the same problem as the other day with:
obj["shape_type"] = "convex"
https://github.com/omigroup/gltf-extensions/blob/main/extensions/2.0/OMI_physics_shape/examples/convex/convex_hull.gltf
convex hull
box
convex hull requires connecting the indexes, which basically means we need to keep count of the IDs of all the geometry objects.