Corners of canvas

I want to know the coordinates of the corners to make some kind of box for my animation, which is just some balls bouncing around. I have done this before in Three with the help of this post.

I tried to do the same in Babylon, but I guess Babylon handles things differently.

How can i accomplish the same in Babylon?


Welcome aboard!

You can do it like this in Babylon (Babylon is left-handed, so the positive Z axis is reversed with respect to Three):


Whoops, did not think about that, thank you for pointing it out!