Skip to content

Camera controls restructure#317

Merged
kpal81xd merged 45 commits intomainfrom
camera-controls
Aug 8, 2025
Merged

Camera controls restructure#317
kpal81xd merged 45 commits intomainfrom
camera-controls

Conversation

@kpal81xd
Copy link
Copy Markdown
Contributor

@kpal81xd kpal81xd commented Mar 10, 2025

Motivation

The camera controls should not use a high level library (Script) but should consist of building blocks that combined can be used directly for the intended purpose. This removes the need of constraints such as attributes, the script lifecycle and it existing as an external resource (unbundled)

Overview

  • Updated engine to 2.10.5
  • Replaced script with custom camera controls class
  • Copied control scheme from @playcanvas/supersplat-viewer
  • Added button and icons for switching orbit/fly mode
  • Moved fullscreen button to top right and replaced position with camera mode icon
  • Reduced borders to 20px

Comment thread eslint.config.mjs Outdated
Comment thread src/camera-controls.ts
@kpal81xd kpal81xd requested a review from a team March 10, 2025 17:37
@kpal81xd kpal81xd self-assigned this Mar 10, 2025
@kpal81xd kpal81xd requested a review from slimbuck August 4, 2025 10:43
@kpal81xd kpal81xd merged commit 1602d39 into main Aug 8, 2025
2 checks passed
@kpal81xd kpal81xd deleted the camera-controls branch August 8, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants