Skip to content

feat: add interaction primitives#91

Open
typpo wants to merge 1 commit intomasterfrom
codex/interaction-showcase
Open

feat: add interaction primitives#91
typpo wants to merge 1 commit intomasterfrom
codex/interaction-showcase

Conversation

@typpo
Copy link
Copy Markdown
Owner

@typpo typpo commented Apr 10, 2026

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 any SpaceObject, 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, and node --check examples/interaction/main.js.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 10, 2026

Deploy Preview for thunderous-lolly-07875e failed.

Name Link
🔨 Latest commit c143534
🔍 Latest deploy log https://app.netlify.com/projects/thunderous-lolly-07875e/deploys/69d8850799270700086f1401

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying spacekit with  Cloudflare Pages  Cloudflare Pages

Latest commit: c143534
Status:🚫  Build failed.

View logs

@typpo typpo marked this pull request as ready for review April 10, 2026 05:03
@typpo typpo changed the title [codex] feat: add interaction showcase feat: add interaction primitives Apr 10, 2026
@typpo typpo force-pushed the codex/interaction-showcase branch from 61b1c78 to c143534 Compare April 10, 2026 05:05
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.

1 participant