Debugging and setup checks
DRW can draw the forces on every floating object and boat, the physics shapes they float on, and a readout of what each actor is doing. It also checks the ocean and water bodies for common setup mistakes and reports them in the Message Log.
Quick start
Section titled “Quick start”- Press Play and open the console (the
~key by default). - Type
drw.debug.preset buoyancyto see buoyancy, weight, damping and wave forces with the readout. - Type
drw.debug.focus BP_FloatCube(any part of an actor’s name) to show only that actor. - Type
drw.debug 0to hide everything again.
What the debug view shows
Section titled “What the debug view shows”- Arrows, one per force, starting where the force acts, in the category’s color. Each arrow is labeled with its name and size (mN, N, kN or MN). Torques (newton-meters) are drawn at half length. Forces weaker than Min Force are not drawn.
- Net Force, a white arrow at the actor’s location: the sum of everything acting on it. When the actor’s root simulates physics, it is measured from the actor’s actual motion and the readout says “(measured)”.
- Physics shapes: every DRW Physics Body’s shapes as outlines, in their material’s debug color (see the materials table).
- The readout in the top-left corner, one block per actor, nearest to the camera first:
- the actor’s name;
- In water (yes when the buoyancy total points up) and Shapes (how many shapes are reading the water);
- the total of each force category that is switched on;
- Net, with its vertical part and a trend: rising, sinking or steady;
- Speed (knots, or cm/s below 1 knot) and vertical speed in cm/s;
- Rotation speed around roll, pitch and yaw in degrees per second.
Categories
Section titled “Categories”| Console name | Category | Color | Drawn by |
|---|---|---|---|
buoyancy | Buoyancy | cyan | DRW Buoyancy: the lift on each shape. |
gravity | Gravity | red | DRW Buoyancy: the weight of each shape. Totals use the whole actor’s weight. |
damping | Damping | yellow | DRW Buoyancy: heave damping and rotational drag (as a torque). |
drag | Drag | blue | DRW Buoyancy: water drag and slamming. Vessels: hull resistance and lateral drag. |
wave | Wave Force | purple (170, 80, 255) | DRW Buoyancy: the sideways wave damping force. |
thrust | Thrust | green | Vessels: each propulsion point. |
steering | Steering | orange | Vessels: each control surface. |
planing | Planing | yellow (255, 220, 0) | Vessels: planing forces. |
wind | Wind | light blue (150, 220, 255) | Vessels: windage. |
stability | Stability | magenta | Vessels: stability torque and ballast. |
velocity | Velocity | white | Vessels: the hull’s velocity at its center of mass. |
shapes | Physics Shapes | (material colors) | Every DRW Physics Body’s shapes. |
interaction | Interaction | turquoise | Ocean water effects: the area around the camera where ripples and wakes are drawn (blue box), its center (cyan sphere), a circle for each active effect colored from red (weak) to green (strong) with a yellow arrow for its motion, and an on-screen line with the number of registered and active effect sources. |
drw.debug.help prints the exact color of each category in the Output Log.
Console commands
Section titled “Console commands”Commands with an optional 0 or 1 flip the current value when you leave the number out. Changes last until you close the editor or the game, so they carry over to the next Play In Editor run; drw.debug.reset returns to the Project Settings values.
| Command | What it does |
|---|---|
drw.debug | Turn debug drawing on (1) or off (0). |
drw.debug.cat category | Turn one category on (1) or off (0), for example drw.debug.cat shapes 1. drw.debug.cat all and drw.debug.cat none switch every category. |
drw.debug.pershape | 1 draws each shape’s forces; 0 draws one total per category at the actor. |
drw.debug.net | Show or hide the Net Force arrow. |
drw.debug.stats | Show or hide the readout. |
drw.debug.labels | Show or hide the text next to each arrow. |
drw.debug.scale value | Arrow length per newton, in cm (0.0001 to 1). Without a value, prints the current one. |
drw.debug.thickness value | Arrow thickness (0.5 to 10). |
drw.debug.threshold newtons | Hide forces weaker than this. |
drw.debug.focus name | Draw only the first actor whose name contains the text, in every game world. drw.debug.focus clear (or no name) shows every actor again. |
drw.debug.preset name | Apply a preset: buoyancy, movement, all, minimal or off. |
drw.debug.reset | Go back to the Project Settings values. |
drw.debug.status | Print the current settings and which categories are on. |
drw.debug.help | List the commands and the category colors. |
Presets
Section titled “Presets”Every preset except Off turns drawing on. The display settings (scale, thickness and so on) are left as they are.
| Preset | Categories | Per-shape forces | Readout | Net force |
|---|---|---|---|---|
| Buoyancy | Buoyancy, Gravity, Damping, Wave Force | on | on | on |
| Movement | Thrust, Steering, Drag, Planing, Wind, Velocity | off | on | on |
| All | all | on | on | on |
| Minimal | none (readout and net force only) | off | on | on |
| Off | unchanged | unchanged | unchanged | unchanged (drawing off) |
Project Settings
Section titled “Project Settings”Project Settings > Plugins > DRW Debug sets what DRW debug starts with when the editor or the game starts. The values are saved to the project’s DefaultGame.ini. Console commands and Blueprint change the current values until the editor or game closes; editing these settings, drw.debug.reset or Reset Debug To Project Defaults brings them back.
| Setting | Default | What it does |
|---|---|---|
| Enabled | off | Draw DRW debug from the start. |
| Categories | all | What to draw. |
| Show Per Shape | on | Draw each shape’s forces. Off draws one total per category at the actor. |
| Show Net Force | on | Draw the sum of all forces on each actor. |
| Show Stats | on | The on-screen readout. |
| Show Arrow Labels | on | Name and value next to each arrow. |
| Arrow Scale | 0.05 | Arrow length per newton (cm), 0.0001 to 1. |
| Arrow Thickness | 5 | 0.5 to 10. |
| Min Force | 10 N | Forces weaker than this are not drawn. |
| Text Scale | 1.25 | 0.5 to 3. |
| Spread Overlapping | on | Spread arrows that start at the same point so they do not hide each other. |
| Spread Spacing | 50 cm | Gap between spread arrows (0 to 200). |
| Spread Cell Size | 5 cm | Arrows starting closer than this count as the same point (0.1 to 500). |
| Hold Time | 0.25 s | How long a force stays drawn after its last update, so forces that update slower than the frame rate do not flicker (0 to 5). |
The settings are shared by every game world in the editor, so all Play In Editor windows show the same categories. Focus is per world.
Blueprint functions
Section titled “Blueprint functions”On the DRW Debug Subsystem (search the Blueprint menu for “Debug Subsystem”):
| Function | What it does |
|---|---|
| Set Debug Enabled / Is Debug Enabled | Turn drawing on or off, or read it. |
| Set Debug Category Enabled / Is Debug Category Enabled | One category on or off, or read it. |
| Apply Debug Preset | Apply Buoyancy, Movement, All, Minimal or Off. |
| Get Debug Options / Set Debug Options | Read or replace all the settings at once (the same fields as Project Settings). |
| Reset Debug To Project Defaults | Go back to the Project Settings values. |
| Focus Debug On Actor / Get Debug Focus Actor | Draw only one actor in this world; pass none to show all again. |
Elsewhere:
- Debug Draw Shapes on a DRW Physics Body draws that body’s shapes for one frame; call it every frame (for example on Tick) to keep them visible.
- Is Sleeping Out Of Sight on DRW Buoyancy tells you whether a body is asleep because no player can see it (see Physics quality and buoyancy timing).
- The DRW Interaction Subsystem has Get Registered Source Count, Get Active Source Count and Is Interaction Enabled, and a Debug Draw property that draws the same view as the
interactioncategory.
Console variables
Section titled “Console variables”These change how DRW works, not just what it draws. Set them in the console, or for every run in Config/DefaultEngine.ini under [SystemSettings] (for example drw.WaterQuery.MaxQueries=8192).
| Variable | Default | Values |
|---|---|---|
drw.WaterQuery.MaxQueries | 4096 | The level’s water sample budget, shared by floating objects (more for a higher Water Sample Count) and water surface queries (each probe or Get Water Surface channel). Clamped to 256 to 8192. Read when the world starts, so set it before the level loads. |
drw.Buoyancy.WaterJumpGuard | 1 | Smooths sudden jumps in the water under floating objects that no real wave makes (for example after you change an ocean setting or swap a data asset), easing them in over the ocean’s Wave Change Blend Time, so objects are not kicked. 0 off, 1 on, 2 on and log every jump it smooths. |
For profiling, stat DRWBuoyancyComponent shows the time spent in buoyancy (in Development builds).
Setup checks
Section titled “Setup checks”The ocean (BP_DynamicRealWater) and every pool, lake and river check their setup and report problems:
- in the Message Log under Map Check when you run Map Check (Build > Map Check),
- in the Message Log under Play In Editor when the level starts in Play In Editor,
- and in the Output Log as
DRW setup (actor name): messagewhenever the actor begins play.
Ocean
| Message (shortened) | Level | What to do |
|---|---|---|
| This is the bare C++ ocean actor; it draws nothing. | Error | Delete it and place BP_DynamicRealWater (DynamicRealWater Content > Blueprints). |
| The ocean Blueprint is missing LOD meshes or MPC_DRW. | Error | Compare its defaults with BP_DynamicRealWater. |
| N DRW oceans in the level; only one is supported. | Warning | Keep one BP_DynamicRealWater. |
| Infinite Ocean expects the ocean at X = 0, Y = 0. | Warning | Move the ocean to the origin, or the depth map and shoreline are misaligned. |
| The ocean must be at Z = 0 (sea level); floating objects use Z = 0 as the water surface. | Warning | Set its Z to 0. |
| Shoreline is on but Compute Depthmap is off, so there is no surf. | Warning | Turn on Compute Depthmap (Grid Settings) or turn Shoreline off. |
Pools, lakes and rivers
| Message (shortened) | Level | What to do |
|---|---|---|
| No Visual Data assigned. | Warning | Assign DA_WB_Pool_Visual, DA_WB_Lake_Visual or DA_WB_River_Visual. |
| Pools and rivers find their walls and obstacles from mesh distance fields, which are off. | Warning | Enable Project Settings > Rendering > Generate Mesh Distance Fields and restart the editor. |
| This water reaches past its shore over a river that flows out of it, so the river is hidden. | Warning | Shrink or move the water so it ends at the outlet. |
Log messages for floating objects
Section titled “Log messages for floating objects”These appear in the Output Log when a floating object is not set up correctly.
| Message | Meaning | Fix |
|---|---|---|
DRW_PhysicsBodyComponent: TargetComponent not set. Skipping shape creation. | Target Component Name is empty or does not name a Static Mesh or Skeletal Mesh component on the actor. | Enter the mesh component’s exact name (for inherited components, the name in brackets, such as CharacterMesh0). |
DRW_BuoyancyComponent: BeginPlay: No PhysicsBodyComponents found on ... | The actor has DRW Buoyancy but no DRW Physics Body. | Add a DRW Physics Body to the same actor. |
DRW_BuoyancyComponent: BeginPlay: No shapes in ... or No valid shapes found. | A DRW Physics Body has no shapes (often because its target was not found). | Add shapes and check Target Component Name. |
... Attached component on ... of ... is not simulating physics. | A target mesh is not simulating, so it gets no forces. DRW only turns Simulate Physics on for the actor’s root. | Turn on Simulate Physics on that mesh, or make it the root. |
... exhausted the water-query slot pool (max N) ... | The level ran out of water samples. The shapes past the limit follow the waves less accurately. | Lower Water Sample Count on small props, or raise drw.WaterQuery.MaxQueries. |
DRW WQ <actor>: shapes=... query=... legacyFallback=... unsampled=... | Repeats about once a second while some shapes of that actor do not get a full water reading. | Same as above. |
Bone '...' not found in SkeletalMeshComponent '...'. Defaulting to root bone. | A shape’s Target Bone Name does not exist in the skeleton. | Use the exact bone name from the skeleton. |
Bone '...' specified but TargetComponent '...' is not a SkeletalMeshComponent. | A bone name is set but the target is a Static Mesh. | Clear Target Bone Name. |
River hydraulics overlay
Section titled “River hydraulics overlay”Rivers have their own editor-only overlay under DRW Debug on the river actor: Show Hydraulics Overlay draws the river’s depth, speed, Froude number or flow regime on it (Overlay Mode, default Froude), with Overlay Max Depth (300 cm) and Overlay Max Speed (400 cm/s) as the values shown at full red. It is never shown in game. See Rivers.