Set camera in front of plane

Hi everybody,

i have problem with setting camera position. In scene user can create multiple planes with different positions and different rotations. I have to add functionality o change camera position and direction that after user click button camera will automatically change position in front of specific plane, parallel to plane and directed to the center of plane. Camera should be located somewhere in the line perpendicular to plane that goes through center of the plane. Camera should has constant distance to plane e.g 10.
I create playground to visualize what a mean.

PG: Babylon.js Playground

I don’t have any idea how to achieve this. I checked this forum but i didn’t found solution to this problem.
I will be grateful for any help

Welcome aboard!

These threads may help:

2 Likes

Thank You!
3rd link is exactly what i was looking for. You made my day :slight_smile:

1 Like