Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-physics-3d

БесплатноЗапускает вложенные скриптыНе проверен

Expert patterns for Godot 3D physics (Jolt/PhysX), including Ragdolls, PhysicalBones, Joint3D constraints, RayCasting optimizations, and collision layers. Use…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

3D Physics (Jolt/Native)

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

NEVER Do

  • NEVER move PhysicsBody3D nodes in _process() — Use _physics_process(). Moving bodies outside the physics step causes visual jitter and unreliable collision detection [12, 13].
  • NEVER scale collision shapes directly — Scaling physics shapes causes instability, inaccurate normals, and jitter. Use the shape properties (height, radius, size) instead.
  • NEVER modify RigidBody3D transforms directly — This ignores the physics solver. Use apply_impulse(), apply_torque(), or the _integrate_forces() callback for safe manipulation [17].
  • NEVER use RigidBody3D for platformer player controllers — RigidBody is for objects driven by physics. For refined movement, use CharacterBody3D with move_and_slide() [move_and_slide].
  • NEVER leave Continuous CD (CCD) enabled for static meshes — It adds heavy CPU cost. Reserve it for high-speed small objects (bullets) to prevent them from passing through walls.
  • NEVER use PhysicsServer3D RIDs without manual cleanup — RIDs are not garbage collected. If you create bodies via the server, you MUST call free_rid() when done to avoid memory leaks.
  • NEVER use RayCast3D for precise ground detection on stairs — A single ray is too thin. Use ShapeCast3D with a cylinder or sphere shape to detect walkable steps reliably [Stair Logic].
  • NEVER rely on VehicleBody3D for non-racing arcade vehicles — It's a complex sim. For arcade hovercraft or simple cars, a custom CharacterBody3D with Raycasts is often easier to tune.
  • NEVER forget to set collision_layer and collision_mask properly — If everything is on layer 1, performance will tank from redundant checks. Categorize your world.
  • NEVER use Area3D for high-frequency blocking — Areas are for detection. For walls/barriers, use StaticBody3D to ensure immediate, robust containment.

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)

  • Layer = what the object is; mask = what it hits. Name bits in physics_layers_3d_config.gd.
  • Do not dump a same-as-2D layers tutorial here; Official Docs cover the shared mental model.

Available Scripts

kinematic_3d_stairs_logic.gd

Procedural stair-step + snap for CharacterBody3D.

shapecast_3d_ground_check.gd

Volume ground/stair detection (rays tunnel).

ragdoll_manager.gd

Animation → PhysicalBone simulation transition, impulses, cleanup.

vehicle_simulation_tuning.gd

VehicleBody3D / VehicleWheel3D arcade vs sim knobs.

soft_body_3d_interaction.gd

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

physics_ccd_3d_projectile.gd

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

physics_server_3d_bullets.gd

RID bullets at scale with mandatory free_rid().

[physics_layers_3d_config.gd](scripts/ph

Полный SKILL.md на GitHub

Установить godot-physics-3d в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/expert-3d-constraints.mdreferences/migration-notes.mdscripts/custom_gravity_well_3d.gdscripts/hover_constraint_3d.gdscripts/joint_3d_breakage_logic.gdscripts/kinematic_3d_stairs_logic.gdscripts/physics_ccd_3d_projectile.gdscripts/physics_layers_3d_config.gdscripts/physics_server_3d_bullets.gdscripts/ragdoll_blender.gdscripts/ragdoll_manager.gdscripts/ray_query_3d_vision.gdscripts/raycast_visualizer.gdscripts/shapecast_3d_ground_check.gdscripts/soft_body_3d_interaction.gdscripts/vehicle_simulation_tuning.gd

FAQ

Что делает скилл godot-physics-3d?

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, Skeleton3D, Joint3D, PinJoint3D, HingeJoint3D, Generic6DOFJoint3D, RayCast3D, PhysicsDirectSpaceState3D.

Как установить скилл godot-physics-3d?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-physics-3d запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-physics-3d с