gd-3d / bless

blender level editor software suite
MIT License
21 stars 2 forks source link

connect convex shape to meshes #2

Closed yankscally closed 3 months ago

yankscally commented 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.

yankscally commented 3 months ago

trying to get convex shapes working, but im having the same problem as the other day with: