Skip to content
Back to skills

Babylonjs Integrate Physics

ASecurity

Integrate an explicitly selected Babylon.js physics plugin with bodies, queries, collision events and controlled stepping.

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

Works with

  • 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-integrate-physics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Babylonjs Integrate Physics?

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

Security grade badge for Babylonjs Integrate Physics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timothymeadows-babylonjs-integrate-physics/badge)](https://www.skillsdirectory.com/skills/timothymeadows-babylonjs-integrate-physics)

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-integrate-physics
description: Integrate an explicitly selected Babylon.js physics plugin with bodies, queries, collision events and controlled stepping.
engines: [BABYLONJS]
---

# Integrate Babylon.js Physics

## When to use

Add dynamics, character collision, constraints or physics queries to a Babylon scene.

## Engine and dependencies

Before edits or tool launches, run `resolve-engine.sh` and `resolve-skill.sh babylonjs-integrate-physics`; require compatibility and honor task override scope. Require a named plugin and compatible Babylon/plugin versions, deployment files, license decision, units and timing requirements. Havok/WASM or another compatible plugin must be explicitly selected; do not download, install or substitute it automatically. Internal camera/mesh collision is a separate facility.

## Workflow

1. Verify plugin initialization and required local WASM/module loading before `scene.enablePhysics`. Missing binaries or unsupported platforms block physics rather than quietly producing visual-only movement.
2. Distinguish the selected plugin API generation. For v2, use supported `PhysicsBody`, `PhysicsShape`, constraints and `PhysicsAggregate` helpers; do not mix legacy `PhysicsImpostor` recipes with v2 contracts. Declare mass, motion type, material, collision masks and sensor behavior.
3. Select a single stepping owner, timestep, substep budget and resume policy. Keep render interpolation separate. Dynamic bodies own physical transforms; kinematic movement and teleports use the plugin's supported update path, not competing per-frame mesh writes.
4. Translate collision/query results to stable entity IDs. Queue gameplay consequences into the simulation boundary; guard duplicate contacts and destroyed entities. Document unsupported shapes and query limitations rather than pretending a render mesh is always a suitable collider.
5. Navigation/AI produces desired movement; the movement adapter performs queries and applies allowed results. Save validated gameplay pose/velocity or checkpoint state, not raw plugin handles. Deterministic replay requires measured support, not an assumption about a fixed step.
6. Dispose owned bodies, constraints, shapes and subscriptions in dependency order. Respect shared shape/plugin ownership and preserve scene teardown safety after partial initialization.

## Output and verification

Deliver the dependency/stepping contract and a controlled runtime fixture. Exercise grounding, triggers, collision filtering, fast movement, teleports, restart, low frame rates and plugin-load failure. Record actual solver behavior and costs; mocked contacts cannot certify dynamics. Check the [official physics integration guide](https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine/) against the installed API generation.

Files in this skill

  • SKILL.md2.8 KB
  • agents/openai.yaml271 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 business →

Comments

Loading comments…

Newsletter

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