Babylon.js-Physik integrieren
Verbindet sichtbare Objekte mit der verwendeten Physik-Engine. Legt Maßstab, Kollisionsbedeutung und Bewegungsverantwortung fest, damit beim Zurücksetzen keine unsichtbaren Körper oder konkurrierenden Transformationen bleiben.
babylonjs-physics-integration
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill für Kollisionskörper, Figurenbewegung und physische Spielinteraktionen.
Wobei hilft er dir?
- Prüft Plugin-Kompatibilität, Koordinatenmaßstab und Laufzeitressourcen.
- Trennt Körpersteuerung, Sensorereignisse und maßgebliche Spieltreffer.
- Verifiziert, dass Zurücksetzen keine doppelten Physikkörper hinterlässt.
Das könntest du fragen
Baue eine Bowlingbahn mit steuerbarer Kugel und fallenden Pins. Trenne den Wertungssensor von physischen Kollisionen und setze die Bahn mehrfach zurück. Jeder sichtbare Pin hat genau einen Physikkörper, und nach Rundenende werden keine weiteren Punkte vergeben.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
Babylon.js — physics integration
Use when connecting Babylon gameplay to a physics plugin, colliders or character movement.
Version and project gate
Inspect package.json and lockfile, Babylon package family and exact version, engine creation, WebGL/WebGPU choice, canvas hosting, loaders, physics plugin version and asset ownership. Keep Babylon Lite and the full engine APIs distinct. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Record the installed physics plugin, WASM requirements and coordinate/scale conventions. Select visual-to-physics synchronization direction for each body type. Configure collision filters, triggers and fixed-step policy. Distinguish a sensor event from a solver contact or game-authoritative hit.
Deliver
A physics ownership diagram and a reproducible interaction scene with measured units and filters. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Do not combine APIs from incompatible physics plugin generations or drive a dynamic body by arbitrary transform writes.
Acceptance scenario
Drop, stack, push and reset representative objects; verify no duplicate body survives a scene restart. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Ziva. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
- https://doc.babylonjs.com/lite/typedoc/functions/removeFromScene
- https://doc.babylonjs.com/lite/typedoc/functions/onSceneDispose
- https://github.com/BabylonJS/Babylon.js
Task-specific official references
Enthaltene Dateien 1
SKILL.md
