Aleksa Svitlica Posted June 7, 2017 Share Posted June 7, 2017 (edited) I have been playing around with ExtrudeShape and ran into some results which I don't understand. http://playground.babylonjs.com/index.html#4JAF22 (zoom out to see the meshes) If you zoom out in that playground you will see a square defined in the xy plane (green mesh) and its extrusion in the -y direction (yellow mesh). I find the result to be a little strange because my understanding of extrusion is that sort of "stretches" the object in a direction. Whereas here it looks more like the square is rotated to be normal to the y plane and then "stretched". http://playground.babylonjs.com/index.html#4JAF22#1 (zoom out to see the meshes) Then in this playground I changed the square so it is defined in the xz plane and still extruded in the -y direction. The result does not make sense to me. Can anyone explain to me how extrusion works? Are these results what should be expected, am I doing something wrong? Edit: I believe this thread actually answers my questions, it seems you can only define in the xy plane for extrusions. Edited June 7, 2017 by Aleksa Svitlica Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 7, 2017 Share Posted June 7, 2017 Ping @JohnK Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 7, 2017 Share Posted June 7, 2017 Hi and welcome and well done for finding the solution. Once you have defined the shape in the xy plane the shape will extrude along any path. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.