Lock a scene that uses an ArcRotateCamera

Hello!!

I looked through the documentation and having trouble trying to code the way to lock my game in one spot so that players cant rotate scene. Do I use another camera or the get front position or what :joy:?
https://www.babylonjs-playground.com/#0XEE49#25

:green_heart: :yellow_heart:,
Mekaboo

You’ll want to use the following four properties:

lower Alpha Limit
upper Alpha Limit

lower Beta Limit
upper Beta Limit

If you set both the lower and upper properties to the same value, the camera won’t be able to rotate.

Hope that helps!

3 Likes

Awesome…THANK YA :heart:

1 Like

Just wanted to add that if you don’t attach control to the camera, the user won’t be able to change its position - https://www.babylonjs-playground.com/#0XEE49#26

2 Likes

I didnt think it would be that simple…just uncomment a line.

Thank ya so very much :heart: