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
MeshBuilderhas a method called
ExtrudePolygonthat 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
movePOVthat 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.