Hi,
I’m using babylon 6 with typescript in vscode (es6). The problem also appears on the playground.
The problem at hand is the MeshBuilder.CreateLineSystem
method that accepts as its final argument a Scene
instance. In this playground example, the scene
argument is omitted when updating the mesh. However, when switching to typescript, the scene
argument is annotated as non-optional, thus producing an error in the editor window. The transpiled Javascript code runs fine, so this is really just an issue with the type definitions.
While investigating, I also stumbled upon a similar issue with the HemisphericLight
constructor (as it also appears in the playground example). There might be multiple instances of this but I do not have the time to find all of them.