Hello guys , just wanted to share this public repo.
While learning and playing around with bbjs I practiced on reproducing all village tutorial sections on local environment beginning with vite starting template.
It may be usefully for beginners when moving from pg to local.
Leandro.
3 Likes
I wonder if there is any need in earcut dependency
Hello , dear @labris ,
Please take a look to branch “09 village parenting” , file VillageAnimationScene.ts , line 38.
in order to create the “car” using the ExtrudePoligon methos , it request an earcut as parameter.
Line is:
const car = BABYLON.MeshBuilder.ExtrudePolygon("car", { shape: outline, depth: 0.2, faceUV: faceUV, wrap: true},this.scene,earcut);
Please let me know if is there is other way to do it and I will push the fix.
Leandro.
I forgot there was a car there
You are right, earcut is necessary in this case.
1 Like