ue-physics-and-chaos

Implement collision, traces, and rigid-body physics in Unreal Engine C++ using Chaos.

55|5|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-physics-and-chaos-kevinpbuckley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ue-physics-and-chaos
Source: https://github.com/kevinpbuckley/unreal-engine-skills/tree/main/skills/core/ue-physics-and-chaos
Command: npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-physics-and-chaos-kevinpbuckley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up collision, traces, and physics simulation in Unreal Engine involves many interacting controls (channels, response types, collision-enabled modes, body instances), and misconfiguration is the most common cause of bugs like overlaps never firing, traces missing targets, or physics not simulating. ## Core Features & Use Cases - Collision Setup: Configure ECollisionChannel object types, per-channel ECR_Block/Overlap/Ignore responses, collision presets, and QueryOnly/PhysicsOnly modes on UPrimitiveComponent. - World Queries: Perform line traces, shape sweeps, and overlap queries with LineTraceSingleByChannel, SweepSingleByChannel, and OverlapMultiByChannel, reading FHitResult data like ImpactPoint, ImpactNormal, and PhysMaterial. - Simulation & Constraints: Enable rigid-body physics with SetSimulatePhysics, apply AddForce/AddImpulse, build ragdolls via UPhysicsAsset, and join bodies with UPhysicsConstraintComponent and FConstraintInstance drives. - Use Case: You need a trigger volume that notifies your actor when a pawn enters. The skill shows the exact QueryOnly setup, ECR_Overlap responses, bGenerateOverlapEvents flag, and the required UFUNCTION delegate signature for OnComponentBeginOverlap. ## Quick Start Ask the agent to set up a sphere component as a query-only trigger volume that overlaps only pawns and fires an OnComponentBeginOverlap event in Unreal Engine C++.

Frequently Asked Questions about ue-physics-and-chaos

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a trigger volume in Unreal Engine C++?

Set the component to ECollisionEnabled::QueryOnly, assign an object type like ECC_WorldDynamic, set ECR_Overlap response for the channels you care about, and enable SetGenerateOverlapEvents(true). Then bind OnComponentBeginOverlap to a UFUNCTION with the exact delegate signature in BeginPlay.

How do I do a line trace in Unreal Engine C++?

Call GetWorld()->LineTraceSingleByChannel with start and end points, a trace channel like ECC_Visibility, and an FCollisionQueryParams. Add AddIgnoredActor(this) so the trace does not hit your own actor, then read FHitResult fields like ImpactPoint, ImpactNormal, and GetActor().

Why is my OnComponentBeginOverlap event not firing in Unreal Engine?

Both components need ECR_Overlap response to each other's object type and bGenerateOverlapEvents set to true. Also verify the handler is a UFUNCTION with the exact delegate signature, since AddDynamic silently fails otherwise.

What is the difference between AddForce and AddImpulse in Unreal Engine?

AddForce applies a continuous force in Newtons accumulated over each physics substep, while AddImpulse applies a one-time momentum change in kg·cm/s during the current step. Set bAccelChange or bVelChange to pass mass-independent acceleration or velocity instead.

Why does SetSimulatePhysics do nothing on my mesh?

Physics simulation requires simple collision (sphere, box, capsule, or convex hull) on the mesh asset; complex per-triangle collision cannot be simulated. Also check that SetCollisionEnabled is not NoCollision or QueryOnly.

How do I make a ragdoll on a skeletal mesh in Unreal Engine?

Author a UPhysicsAsset in the Physics Asset Editor, then call SetSimulatePhysics(true) and SetCollisionProfileName(TEXT("Ragdoll")) on the USkeletalMeshComponent. For partial ragdolls, use UPhysicalAnimationComponent with SetAllBodiesBelowSimulatePhysics to blend simulation with animation.