I am puttering through Julian Chenard’s excellent ebook “Learning Babylon.js” as I realized how much I have forgotten over the years. However, it was wrote for Babylon 2.4 using pre ES6 standards so I have added the challenge of converting all the code in the book to modern standards including ES6. I figured that would force me to brush up on modern standards and the latest 4.x engine.
I am sure it is nothing but a typo, but I am at a loss as to where. This is a basic “player class” from one of his early examples semi converted to ES6. But Babylon seems to be loosing reference when trying to call setVertexData. Why?
The console syntax error is “TypeError: e.setVerticesData is not a function”.