Hi all. In the example with the rabbit cannon.js - bunny demo I came across the construction of a grid using coordinate points, here is my code.
var paral = [
{"verts":[1,1,0,
3,1,0,
3,3,0,
1,3,0,
0,0,2,
2,0,2,
2,2,2,
0,2,2],
"faces":[3,6,2,
3,7,6,
0,7,3,
0,4,7,
7,4,5,
7,5,6,
3,1,0,
3,2,1,
0,5,4,
5,0,1,
1,2,6,
1,6,5],
"offset":[-0.6374034157303371,-0.5318040449438204,-0.12628506031460668]}] ;
this is a paralepiped.
I found this in the three js manuals
https://threejs.org/docs/#api/en/geometries/PolyhedronGeometry
here I can’t select anything other than -1 or 1, therefore I only get a cube, is it possible to solve this problem without using OBJLoader