Godot physics 3d

From nix-community/nur-combined · View interactive version

Godot physics 3d is an AI agent skill from the GitHub repository nix-community/nur-combined. 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)

Expert guidance for high-performance 3D physics and ragdolls.

NEVER Do


Available Scripts

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

Direct PhysicsServer3D RID management for thousands of high-speed 3D projectiles.

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

Expert line-of-sight and AI vision logic using low-level space state interrupts.

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

Robust stair and ledge detection using ShapeCast3D for 3D CharacterBody stability.

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

Continuous Collision Detection configuration and sub-stepping logic for anti-tunneling.

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

Clean collision matrix architecture for 3D using named bitmask layers and masks.

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

Planet-style gravity wells and zero-G zones implemented via priority Area3D nodes.

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

Managing high-performance SoftBody3D flags, cloaks, and foliage attachments.

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

Dynamic joint stress monitoring and procedural snaps for destructible 3D objects.

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

Advanced procedural stair-stepping and snapping for professional 3D character controllers.

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

Tuning VehicleBody3D and VehicleWheel3D for high-speed drifting and arcade feel.

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

Expert manager for transitioning Skeleton3D from animation to physical simulation (death effect). Handles impulse application and cleanup.

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

Debug tool to visualize hit points and normals of RayCast3D in game.

Core Architecture

1. Layers & Masks (3D)

Same as 2D:

2. Physical Bones (Ragdolls)

Godot uses PhysicalBone3D nodes attached to Skeleton3D bones.

To setup:

  1. Select Skeleton3D.
  2. Click "Create Physical Skeleton" in top menu.
  3. This generates PhysicalBone3D nodes.

3. Jolt Joints

Use Generic6DOFJoint3D for almost everything. It covers hinge, slider, and ball-socket needs with simpler configuration than specific nodes.


Ragdoll Implementation

# simple_ragdoll.gd
extends Skeleton3D

func start_ragdoll() -> void:
    physical_bones_start_simulation()
    
func stop_ragdoll() -> void:
    physical_bones_stop_simulation()

Reference

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.