Skip to content
Back to skills

Babylonjs Build Controls

ASecurity

Implement Babylon.js camera inputs, picking and player actions with modal isolation and device-aware feedback.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
toolsapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add TimothyMeadows/Hephaera --skill babylonjs-build-controls --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Babylonjs Build Controls?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Babylonjs Build Controls
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timothymeadows-babylonjs-build-controls/badge)](https://www.skillsdirectory.com/skills/timothymeadows-babylonjs-build-controls)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: babylonjs-build-controls
description: Implement Babylon.js camera inputs, picking and player actions with modal isolation and device-aware feedback.
engines: [BABYLONJS]
---

# Build Babylon.js Controls

## When to use

Integrate camera inputs, world interaction or keyboard, touch and controller actions in a Babylon game.

## Engine and dependencies

Before edits or tool launches, run `resolve-engine.sh` and `resolve-skill.sh babylonjs-build-controls`; require compatibility and respect task override scope. Read the locked Babylon version, chosen camera, action bindings, local-player assignments and browser capabilities. Device input, XR and physics plugins remain explicit project choices.

## Workflow

1. Pick the camera/input manager deliberately: for example `ArcRotateCamera` for inspection or a selected gameplay camera with its own action adapter. Configure `camera.inputs` and `attachControl` consistently; `detachControl` on suspension and teardown. Avoid default camera keyboard bindings also moving the player unexpectedly.
2. Convert `scene.onPointerObservable` and keyboard/gamepad events into gameplay actions. Own each observer handle and remove it once. Keep simulation updates separate from event timing; clear held actions on focus loss, pointer cancellation and device disconnect.
3. Use `scene.pick`/ray picking with predicates, collision layers and stable entity mappings. Respect the active camera/viewport and transform state. Pick results indicate spatial hits, not permission to execute gameplay actions.
4. Route GUI/modal input before world interaction; define pointer capture/lock, drag thresholds and back/cancel. Only request browser-privileged interaction from a user gesture and preserve an unlocked path after rejection.
5. Apply per-player dead zones, sensitivity, rebinding and active-device prompts. A browser haptic adapter must capability-check the assigned controller, bound effects, honor intensity settings and stop on pause, disconnect or ownership change. Rejected promises and unavailable motors do not affect simulation.

## Output and verification

Deliver camera/action adapters, pick policy and ownership cleanup. Check touch/mouse parity, scaled canvases, split viewports, modal click-through, focus restoration, reconnect and held-action clearing. Test unsupported and cancelled haptic output; only physical hardware confirms tactile output. Inspect version-matched [Scene APIs](https://doc.babylonjs.com/typedoc/classes/BABYLON.Scene) for observable and picking signatures.

Files in this skill

  • SKILL.md2.5 KB
  • agents/openai.yaml258 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.