Open
Conversation
❌ Deploy Preview for thunderous-lolly-07875e failed.
|
61b1c78 to
c143534
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This adds a focused interaction showcase example and the engine support behind it. The example gives people a single place to click, hover, select, center, fit, and track objects instead of piecing that behavior together from several older demos.
The underlying change is that interaction is now a first-class part of
Simulation: objects are registered, pick results are exposed, and the camera can follow anySpaceObject, including particle-backed bodies like the comet in the new example. The object browser and HUD in the demo are there to make those flows obvious without adding extra explanation to the page itself.Why it was needed
Before this change, the library had the rendering pieces but no clean example showing how to build object selection on top of them. It also had an awkward limitation where particle-only objects could be picked by the new fallback path but could not be tracked by the camera. That made the interaction story feel unfinished.
Validation
I ran
pnpm test -- --runInBand,pnpm build, andnode --check examples/interaction/main.js.