Babylon JS Day 2
Today I worked through chapters three and four of the Babylon JS Getting Started guide. After working in Unity for a couple of years, most of these concepts are not new to me, just the way that Babylon JS implements them. Some things that stood out as interesting to me are
MeshBuilder
has a method calledExtrudePolygon
that can be used for complex extrusions. I wonder what other methods are available… While I can create some basic models in Blender, I have trouble using tools like that because they require the constant use of a pointing device. I will happily create models via code when I can.- Lots of information on how Babylon JS handles animations. Animations can be imported along with models and used in a scene, but I can also code some animations directly in Babylon JS. There are a handful of interesting playgrounds with sample code to check out.
- There is a handy method called
movePOV
that will move an object using it’s forward vector. When using this I don’t have to calculate differences in vectors based on orientation of the object I’m moving. I can just pass a Vector3 that indicates the movement from the perspective of the object. - Chapter 4 was a brief introduction to collisions. It explained how to test for collision between two objects. I need to learn more about the default bounding boxes and if I can customize these shapes.