Having trouble understanding how to pass the second parameter (indices) of the cannon.trimesh( ) class. I have a JSON file exported from blender with the following object properties.
How do you calculate the indices so it can be passed into cannon.trimesh( )? Assuming you triangulated the blender mesh before exporting it to three.js JSON so that the entire mesh is tri's instead of quads.
Hello,
Having trouble understanding how to pass the second parameter (indices) of the cannon.trimesh( ) class. I have a JSON file exported from blender with the following object properties.
How do you calculate the indices so it can be passed into cannon.trimesh( )? Assuming you triangulated the blender mesh before exporting it to three.js JSON so that the entire mesh is tri's instead of quads.