Jolt physics

From akillness/jeo-skills · View interactive version

Jolt physics is an AI agent skill from the GitHub repository akillness/jeo-skills. Operate jrouwe/JoltPhysics for native C++ physics integration, pinned builds, body lifecycle, collision queries, determinism checks, or Jolt-specific failures. Use when the request names Jolt Physics, its JPH API, or this repository. Route ordinary Godot physics settings, unrelated physics engines,

How to use this skill

Skill file

jolt-physics

When to use this skill

Use for the named Jolt native library, JPH symbols, its sample integration, or an existing Jolt build/runtime issue. Select exactly one mode: source-fit, build-plan, native-integration, determinism-audit, or failure-triage. Generic Godot physics belongs to the engine workflow, not this native-library operator. JoltPhysics.js is a separate repository and requires its own source/version review.

Instructions

1. Freeze one mode and evidence boundary

Read references/upstream.md for version, architecture, asset-license, and platform limits. Read references/source.json for selected-file provenance. Record existing project/compiler/architecture/build type, linked Jolt version, requested output, and permission scope. Preserve existing pins; HEAD evidence is not release equivalence.

Helper host prerequisite: Before running the helper, use a POSIX Python environment with os.O_NOFOLLOW and os.open support for dir_fd. Native Windows may fail closed with secure_posix_traversal_unavailable; preserve these safety guards. Windows users can retry in a WSL environment that supports these features or manually compare the original manifest-listed source files against the pinned evidence. Neither this guidance nor a manual comparison verifies helper execution or runtime behavior; report those as unverified.

From the installed skill directory, run only the offline helper when authorized:

~~~sh

python3 scripts/preflight.py --json

python3 scripts/preflight.py --json --repo <approved-absolute-source-root>

~~~

The helper is local at scripts/preflight.py and loads references/source.json relative to itself. It checks selected bytes, rejects symlink traversal and sensitive paths, and does not run upstream code. Without --repo, source_checked remains false. Tool presence is not version/readiness proof; whole_revision_verified and runtime_verified remain false. Stop source-fit on mismatched selected hashes; do not rewrite the manifest to force a match.

2. Execute only the selected mode

3. Gate side effects and asset use

Source downloads, dependencies, compiler/build/test execution, project edits and signing each need explicit matching approval. Never infer publishing or git permission. Root MIT does not clear all assets: race tracks have LGPLv3 terms; external hair/head-model rights remain unresolved. Use self-owned synthetic test geometry unless component rights are separately verified. GPU hair does not mean GPU rigid-body simulation. Console support can require NDA-controlled files unavailable here.

4. Verify the actual requested outcome

Before approved execution, freeze commit, command, compiler, flags, test input, expected result, and output path. Afterwards preserve exit code/raw output and inspect the requested artifact. For integration, verify body cleanup, collision filters, fixed-step stability, buffer saturation, and thread-safe callbacks. For determinism, compare replay results across the exact declared configurations. Never substitute preflight success, README claims, or a green build for runtime/collision/performance proof. If execution is not authorized, return the plan and mark tests not executed.

Examples

Best practices

Keep core/sample/GPU dependencies separate. Batch body insertion; OptimizeBroadPhase is expensive and not a per-frame default. Keep listener work thread safe. Record approximate upstream performance statements as claims, never local measurements. Preserve root and component notices when distributing copied software/assets. Copy no unresolved asset and publish no upstream contribution without separately checking the contributor agreement and authorization.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.