Game Math And Simulation logo

Game Math And Simulation

Community
peterbamuhigire
game-math-and-simulation

Use when a game system needs explicit vector, matrix, quaternion, geometry, interpolation, collision, camera, steering, probability, or numerical-simulation rules; use gameplay-systems-architecture for ownership and the engine skill for API integration.

Overview

Publisherpeterbamuhigire
Repositorychwezi-dev-engine
Skill namegame-math-and-simulation
Stars
29
Forks
6
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by peterbamuhigire on GitHub. Read the source before you install it.

Installation

Install the Game Math And Simulation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/game-development/game-math-and-simulation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterbamuhigire/chwezi-dev-engine.git /tmp/chwezi-dev-engine
mkdir -p .claude/skills
cp -r /tmp/chwezi-dev-engine/skills/game-development/game-math-and-simulation .claude/skills/game-math-and-simulation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Game Math And Simulation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Game Math And Simulation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Game Math And Simulation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Game Math and Simulation

Turn mathematical intent into named coordinate spaces, explicit units, stable numerical methods, deterministic oracles, and player-visible behaviour that survives variable frame time.

Prerequisites

Load the approved mechanic or rendering requirement, gameplay-systems-architecture, and the selected engine skill before choosing engine-specific types or APIs.

Use When

  • Specifying movement, aiming, cameras, animation blending, steering, trajectories, collision, procedural placement, spatial queries, simulation, or shader mathematics.
  • Debugging jitter, drift, tunnelling, gimbal-like rotation defects, unstable springs, frame-rate dependence, or incorrect coordinate conversions.
  • Writing deterministic mathematical test oracles for gameplay, tools, or rendering.

Do Not Use When

  • The task is system ownership, persistence, or event architecture without a mathematical defect; use gameplay-systems-architecture.
  • The task is render-pipeline, material, or GPU design; use real-time-game-graphics and return here for the mathematical contract.
  • A built-in engine primitive already satisfies the requirement and profiling/tests show no gap; do not replace it with bespoke mathematics.

Inputs

ArtefactProduced byRequired?Why
Mechanic or visual behaviour specificationgame design/system owneryesDefines player-visible intent and limits
Coordinate, unit, time and precision contextengine/physics/rendering owneryesPrevents space, scale and timestep ambiguity
Failure cases and acceptance criteriatesting owneryesMakes the result testable
Target-device performance evidencemobile-game-performanceconditionalBounds numerical and query cost

Workflow

  1. State the player-visible behaviour before selecting a formula.
  2. Name every coordinate space, handedness, axis convention, unit, time source, angle unit, range and precision assumption.
  3. Choose the smallest mathematical model that represents the behaviour; prefer engine-tested primitives when their contract fits.
  4. Separate simulation state from presentation smoothing. Use fixed-step simulation where rule consistency requires it and render interpolation where visual continuity requires it.
  5. Define boundary conditions, tolerances, degenerate inputs, clamping, normalisation, random seeds and recovery from non-finite values.
  6. Work representative examples by hand, then encode property, boundary, invariant and frame-rate-independence tests.
  7. Instrument the result with debug vectors, paths, bounds, state graphs or numeric traces; profile worst-case queries on target devices.

Quality Standards

  • Treat local, world, view, clip, screen, UV and tangent spaces as different types even if the engine represents them with the same structure.
  • Keep units explicit. Convert at boundaries; do not scatter scale factors through gameplay code.
  • Use dot products for alignment/projection questions, cross products for perpendicular/orientation questions, and quaternions for composed 3D orientation without exposing raw components to designers.
  • Compare floating-point results with requirement-derived tolerances, never blanket exact equality or an unexplained epsilon.
  • Preserve determinism only where the product needs replay, save reconstruction, lockstep, seeded tests, or auditability; record platform limits.

Decision Rules

NeedPreferred modelGate
Constant-rate rule simulationFixed timestep plus bounded catch-upSame input sequence gives equivalent state across tested render rates
Visual smoothing onlyInterpolation or critically damped responseNo rule state is authored from smoothed presentation
3D orientation compositionNormalised quaternion through engine APINo Euler accumulation; shortest-path behaviour tested
Fast moving collisionSweep/continuous query or smaller bounded stepTunnelling case passes at maximum specified speed
Random but reproducible contentExplicit seeded stream per owning systemSave/replay and test sequence remain stable

Capability Contract

Read and search access to the requirement and implementation are required. Execute tests and visual/debug captures when available. Editing follows the parent implementation scope; without execution, return the model and unverified test vectors rather than claiming correctness.

Degraded Mode

If the engine version, scale, timestep, or coordinate convention is unknown, stop formula-level implementation. Return the missing contract fields, provisional equations, and the exact experiments required to resolve them.

Anti-Patterns

  • Mixing local and world vectors. Fix: name conversion boundaries and assert the expected space.
  • Multiplying movement by both fixed and render delta time. Fix: assign one time domain to each state update.
  • Euler-angle accumulation for arbitrary 3D orientation. Fix: compose rotations with engine quaternion operations and test wrap boundaries.
  • Normalising a zero-length vector. Fix: define the zero-input behaviour before the operation.
  • Magic epsilon everywhere. Fix: derive tolerances from game scale, solver precision and the observable acceptance condition.
  • Random calls from shared global state. Fix: give each deterministic system an owned, serialisable random stream.
  • Complex custom collision before profiling built-in queries. Fix: prove the engine primitive is insufficient first.

Outputs

ArtefactConsumed byAcceptance condition
Mathematical behaviour contractgameplay/rendering implementationSpaces, units, time, equations, limits and degeneracies are explicit
Worked test vectors and invariant suitegame-testing-polishNormal, boundary, degenerate and frame-rate cases have deterministic oracles
Debug and profiling planengine/performance ownersThe result can be inspected and its worst-case cost measured

References

Evidence Produced

CategoryArtifactFormatExample
CorrectnessSimulation oracle and numerical test reportMarkdown plus deterministic fixturesunits, timestep, seed, tolerance, invariant, edge case, and replay result

Read Next

Use real-time-game-graphics for shader/rendering integration, the selected engine skill for implementation, and game-testing-polish for balance and player-facing verification.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Game Math And Simulation AI skill do?

Use when a game system needs explicit vector, matrix, quaternion, geometry, interpolation, collision, camera, steering, probability, or numerical-simulation rules; use gameplay-systems-architecture for ownership and the engine skill for API integration.

Why use Game Math And Simulation on TypingMind?

Because you install it once and use it with any model. Game Math And Simulation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Game Math And Simulation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/peterbamuhigire/chwezi-dev-engine/tree/main/skills/game-development/game-math-and-simulation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Game Math And Simulation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Game Math And Simulation?

As many as you like. As long as a model supports skills, you can use Game Math And Simulation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Game Math And Simulation AI skill free?

Yes. It is published on GitHub by peterbamuhigire under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇