url https://playground.babylonjs.com/#XMXDAA#25
bug
It is a typing error that can be resolved with casting:
Babylon.js Playground (babylonjs.com)
Can I ask where you found the snippet so we can update the reference?
ok,Thank you