camera.zoomOn([box]) in Playground throws "e.forEach not a function"

While trying to create a test for another bug I noticed that the playground throws “e.forEach not a function” when calling camera.zoomOn() -

The other bug?? is that the skybox seems to disappear after a call to zoomOn([box]).

Your PG should be passing in an array it’s just a typo - you did type it correctly on your follow up code :slight_smile:

The second param will skip updating the maxz and you can see the skybox:
? | Babylon.js Playground (

1 Like

Oops, that was embarrassing. Thanks.