Godot physics 3d

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot physics 3d is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert patterns for Godot 3D physics (Jolt/PhysX), including Ragdolls, PhysicalBones, Joint3D constraints, RayCasting optimizations, and collision layers. Use for rigid body simulations, character physics, or complex interactions. Trigger keywords: RigidBody3D, PhysicalBone3D, Jolt, Ragdoll, Skeleto

How to use this skill

Skill file

3D Physics (Jolt/Native)

High-performance 3D simulation: body choice, CCD, stairs, vehicles, ragdolls, SoftBody — routed through scripts.

NEVER Do


Body / Symptom Decision Tree

MANDATORY — load the script for the chosen row before writing movement or sim code.

Do NOT Load every physics script for one controller.

| Need / symptom | Body / API | Script |

|----------------|------------|--------|

| Player locomotion, stairs, slopes | CharacterBody3D | MANDATORY kinematic_3d_stairs_logic.gd + shapecast_3d_ground_check.gd |

| Debris, props, impulse-driven objects | RigidBody3D | NEVER + impulses; layers via physics_layers_3d_config.gd |

| Racing / wheeled sim | VehicleBody3D | MANDATORY vehicle_simulation_tuning.gd |

| Arcade hover / simple cars | Custom CharacterBody3D + rays | Prefer stairs/ray scripts; avoid full VehicleBody |

| Death / blend to physics pose | PhysicalBone3D / Skeleton | MANDATORY ragdoll_manager.gd |

| Cloaks, soft cloth, foliage soft | SoftBody3D | MANDATORY soft_body_3d_interaction.gd |

| Tunneling bullets | CCD / server bullets | MANDATORY physics_ccd_3d_projectile.gd or physics_server_3d_bullets.gd |

| Joint snap / destructibles | Joint3D stress | joint_3d_breakage_logic.gd |

| Gravity wells / zero-G | Area priority | custom_gravity_well_3d.gd |

| LOS / AI vision | Direct space state | ray_query_3d_vision.gd |

| Debug hit normals | visualizer | raycast_visualizer.gd |

3D Layer Pitfalls (not a 2D primer)

Available Scripts

[kinematic_3d_stairs_logic.gd](scripts/kinematic_3d_stairs_logic.gd)

Procedural stair-step + snap for CharacterBody3D.

[shapecast_3d_ground_check.gd](scripts/shapecast_3d_ground_check.gd)

Volume ground/stair detection (rays tunnel).

[ragdoll_manager.gd](scripts/ragdoll_manager.gd)

Animation → PhysicalBone simulation transition, impulses, cleanup.

[vehicle_simulation_tuning.gd](scripts/vehicle_simulation_tuning.gd)

VehicleBody3D / VehicleWheel3D arcade vs sim knobs.

[soft_body_3d_interaction.gd](scripts/soft_body_3d_interaction.gd)

SoftBody3D flags, pinning, and Jolt mass/stiffness tuning.

[physics_ccd_3d_projectile.gd](scripts/physics_ccd_3d_projectile.gd)

CCD / sub-step anti-tunneling for small fast bodies.

[physics_server_3d_bullets.gd](scripts/physics_server_3d_bullets.gd)

RID bullets at scale with mandatory free_rid().

[physics_layers_3d_config.gd](scripts/physics_layers_3d_config.gd)

Named 3D collision matrix architecture.

[custom_gravity_well_3d.gd](scripts/custom_gravity_well_3d.gd)

Planet / zero-G Area3D gravity priority.

[joint_3d_breakage_logic.gd](scripts/joint_3d_breakage_logic.gd)

Joint stress monitoring and procedural snaps.

[ray_query_3d_vision.gd](scripts/ray_query_3d_vision.gd)

Low-level LOS / AI vision queries.

[raycast_visualizer.gd](scripts/raycast_visualizer.gd)

In-game ray hit/normal debug draw.

Expert Pointers (Jolt)

Deep dives (on demand)

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API;

load Related Skills when routing work to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
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.