Visitar URL original
Option to limit orbit pitch (don't orbit below the scene) · Issue #332 · playcanvas/supersplat-viewer · GitHub
Skip to content

Option to limit orbit pitch (don't orbit below the scene) #332

Open

Description

@ItsChrisHickman

We embed the viewer with createViewer and want orbit mode to stop at
the horizon, so a visitor can't orbit under the scene and see the splat
from below.

The range is fixed today: OrbitController sets
controller.pitchRange = new Vec2(-90, 90), and the controllers aren't
reachable from the handle, so an embedder can't change it.

Could orbit's pitch range be an option, for example
createViewer({ orbit: { pitchRange: [-90, 0] } }) or a field in
settings.json? We're carrying a one-line patch until then.

Related: #77.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions