Skip to content

Limited rotation of map with OrbitControls

Nora Hansen requested to merge RotationLimit into main

Changed controls from TrackballControls to OrbitControls. Imported newer version of three.min.js, so some deprecated functions are replaced (just the texture loading). Rotation of the map is now limited to prevent from seeing the back of it. Values of the limitation can be changed later if desired.

Merge request reports