Godot Physics logo

Godot Physics

Community
EL4CTEO
godot-physics

Physics in Godot 4.7 (2D and 3D, Jolt default) - choosing body types, CharacterBody movement and floors/slopes/platforms, RigidBody forces and freezing, Area triggers, collision layers/masks, raycasts and shape queries, physics interpolation, ragdolls (PhysicalBoneSimulator3D), joints, Jolt differences and settings. Use for movement, collisions, triggers, projectiles, vehicles or ragdolls.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-physics
Stars
60
Forks
6
Bundled files
1
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.

  • 1 bundled files

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

  • Open source

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

Installation

Install the Godot Physics 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/EL4CTEO/godot-skills/tree/main/skills/godot-physics
  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/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-physics .claude/skills/godot-physics
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Physics 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 Godot Physics 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 Godot Physics 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.

Physics (4.7)

Check the engine first: project_inspect.py → physics_3d. New 4.6+ projects use Jolt. Older ones may still run GodotPhysics3D (DEFAULT). 2D always uses Godot's 2D engine. Code that touches physics goes in _physics_process (fixed tick, physics/common/physics_ticks_per_second, default 60).

Choose the body

BodyUse forYou control
CharacterBody2D/3Dplayers, NPCs, anything with scripted movementvelocity, then move_and_slide()
RigidBody2D/3Dcrates, debris, balls, physics propsforces and impulses (apply_central_impulse) or _integrate_forces(state)
AnimatableBody2D/3Dmoving platforms, doors, elevatorsposition via AnimationPlayer or a tween (sync_to_physics)
StaticBody2D/3Dlevel geometry (constant_linear_velocity for conveyors)nothing
Area2D/3Dtriggers, hitboxes, pickups, gravity and wind zonessignals and overlap queries
Never move a RigidBody by setting position each frame. Use forces, freeze, or PhysicsServer3D.body_set_state for teleports.

CharacterBody essentials

  • Gravity: velocity += get_gravity() * delta reads Area overrides too. Then call move_and_slide(), which takes no arguments in 4.x.
  • Floors: up_direction, floor_max_angle, floor_snap_length (raise it for stairs and ramps), floor_stop_on_slope, floor_constant_speed. Also is_on_floor/wall/ceiling() and get_floor_normal().
  • Moving platforms: platform_on_leave (keep or drop the platform's velocity). Riding works automatically on AnimatableBody and RigidBody.
  • Collisions: loop get_slide_collision_count() → get_slide_collision(i).get_collider(), for example to push rigid bodies (see the reference).
  • Stairs: Jolt and GodotPhysics have no automatic step-up. Use small ramps or a capsule plus snap, or a step-up raycast routine.
  • Use a capsule collider for characters. Boxes snag on edges.

Layers and masks

  • Layer means "what I am". Mask means "what I scan for". Name the layers in Project Settings → Layer Names (project_inspect.py lists them).
  • In code: set_collision_layer_value(3, true) and set_collision_mask_value(2, false) use 1-based layer numbers. Exports: @export_flags_3d_physics var mask := 1.
  • A typical scheme: 1 world, 2 player, 3 enemies, 4 player hitbox, 5 enemy hurtbox, 6 pickups, 7 interactables. Projectiles only mask what they can hit.

Queries

  • Use RayCast3D/ShapeCast3D nodes for persistent checks (ground, line of sight, interaction). Call force_raycast_update() for an immediate result within the same frame.
  • One-off checks: get_world_3d().direct_space_state.intersect_ray(PhysicsRayQueryParameters3D.create(from, to, mask, [self_rid])) returns a dictionary (position, normal, collider, rid, face_index), or empty on a miss. Run it only in _physics_process.
  • Mouse picking in 3D: camera.project_ray_origin(mouse) and project_ray_normal, then the ray query above. Control nodes must not swallow the event first (mouse_filter).
  • intersect_shape, cast_motion and get_rest_info work for area-of-effect and sweeps.

Physics interpolation (smooth at any frame rate)

Turn on physics/common/physics_interpolation. Move and rotate physics-driven objects only in _physics_process. After a teleport, call reset_physics_interpolation(). Cameras that follow interpolated targets should follow in _process, or use get_global_transform_interpolated().

Ragdolls (3D)

Use Skeleton3D → PhysicalBoneSimulator3D (4.3+) → PhysicalBone3D children, created with the Skeleton3D menu "Create Physical Skeleton". Toggle with physical_bones_start_simulation()/physical_bones_stop_simulation(), and use influence to blend with animation. Active ragdolls should be driven by the simulator, not by moving the bones yourself.

Jolt specifics (default in new projects)

  • Better stacking, performance and determinism than GodotPhysics. Area3D reports overlaps with SoftBody3D (4.7) and static bodies.
  • Unsupported joint parameters (bias, softness, relaxation and limit softness/restitution) print warnings. Single-body joints treat the body as node_b (setting physics/jolt_physics_3d/joints/world_node).
  • WorldBoundaryShape3D has a limited effective size (limits/world_boundary_shape_size), and its plane.d sign flipped in 4.7. Prefer a big box for floors.
  • Ray face_index needs queries/enable_ray_cast_face_index. Kinematic contacts need simulation/generate_all_kinematic_contacts, which costs performance.
  • Tune limits for large worlds: limits/max_bodies, max_body_pairs and max_contact_constraints.

Fast objects

Bullets and projectiles: use a raycast from the last to the current position each tick (hitscan), or RigidBody3D.continuous_cd = true. Thin walls plus fast bodies tunnel otherwise.

Controllers, interaction, pushing, queries and ragdoll code (compiled by the tests): references/patterns.md

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 Godot Physics AI skill do?

Physics in Godot 4.7 (2D and 3D, Jolt default) - choosing body types, CharacterBody movement and floors/slopes/platforms, RigidBody forces and freezing, Area triggers, collision layers/masks, raycasts and shape queries, physics interpolation, ragdolls (PhysicalBoneSimulator3D), joints, Jolt differences and settings. Use for movement, collisions, triggers, projectiles, vehicles or ragdolls.

Why use Godot Physics on TypingMind?

Because you install it once and use it with any model. Godot Physics 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 Godot Physics in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-physics. 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 Godot Physics?

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 Godot Physics?

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

Is the Godot Physics AI skill free?

Yes. It is published on GitHub by EL4CTEO 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 👇