hi all,
i just want to migrate my project from threejs to babylon, the first problem i have is that how to generate shape mesh.
i have floor shape point in 2d
[{"x":-4.72,"y":-1.955},{"x":-4.72,"y":3.015},{"x":5.47,"y":3.015},{"x":5.47,"y":-1.955},{"x":0,"y":-3.955}]
In threejs:
var geometry = new THREE.ShapeGeometry( floorshape);
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
var mesh = new THREE.Mesh( geometry, material ) ;