Skip to content

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.

  1. Press Play and open the console (the ~ key by default).
  2. Type drw.debug.preset buoyancy to see buoyancy, weight, damping and wave forces with the readout.
  3. Type drw.debug.focus BP_FloatCube (any part of an actor’s name) to show only that actor.
  4. Type drw.debug 0 to hide everything again.
  • 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.
Console nameCategoryColorDrawn by
buoyancyBuoyancycyanDRW Buoyancy: the lift on each shape.
gravityGravityredDRW Buoyancy: the weight of each shape. Totals use the whole actor’s weight.
dampingDampingyellowDRW Buoyancy: heave damping and rotational drag (as a torque).
dragDragblueDRW Buoyancy: water drag and slamming. Vessels: hull resistance and lateral drag.
waveWave Forcepurple (170, 80, 255)DRW Buoyancy: the sideways wave damping force.
thrustThrustgreenVessels: each propulsion point.
steeringSteeringorangeVessels: each control surface.
planingPlaningyellow (255, 220, 0)Vessels: planing forces.
windWindlight blue (150, 220, 255)Vessels: windage.
stabilityStabilitymagentaVessels: stability torque and ballast.
velocityVelocitywhiteVessels: the hull’s velocity at its center of mass.
shapesPhysics Shapes(material colors)Every DRW Physics Body’s shapes.
interactionInteractionturquoiseOcean 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.

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.

CommandWhat it does
drw.debugTurn debug drawing on (1) or off (0).
drw.debug.cat categoryTurn 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.pershape1 draws each shape’s forces; 0 draws one total per category at the actor.
drw.debug.netShow or hide the Net Force arrow.
drw.debug.statsShow or hide the readout.
drw.debug.labelsShow or hide the text next to each arrow.
drw.debug.scale valueArrow length per newton, in cm (0.0001 to 1). Without a value, prints the current one.
drw.debug.thickness valueArrow thickness (0.5 to 10).
drw.debug.threshold newtonsHide forces weaker than this.
drw.debug.focus nameDraw 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 nameApply a preset: buoyancy, movement, all, minimal or off.
drw.debug.resetGo back to the Project Settings values.
drw.debug.statusPrint the current settings and which categories are on.
drw.debug.helpList the commands and the category colors.

Every preset except Off turns drawing on. The display settings (scale, thickness and so on) are left as they are.

PresetCategoriesPer-shape forcesReadoutNet force
BuoyancyBuoyancy, Gravity, Damping, Wave Forceononon
MovementThrust, Steering, Drag, Planing, Wind, Velocityoffonon
Allallononon
Minimalnone (readout and net force only)offonon
Offunchangedunchangedunchangedunchanged (drawing off)

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.

SettingDefaultWhat it does
EnabledoffDraw DRW debug from the start.
CategoriesallWhat to draw.
Show Per ShapeonDraw each shape’s forces. Off draws one total per category at the actor.
Show Net ForceonDraw the sum of all forces on each actor.
Show StatsonThe on-screen readout.
Show Arrow LabelsonName and value next to each arrow.
Arrow Scale0.05Arrow length per newton (cm), 0.0001 to 1.
Arrow Thickness50.5 to 10.
Min Force10 NForces weaker than this are not drawn.
Text Scale1.250.5 to 3.
Spread OverlappingonSpread arrows that start at the same point so they do not hide each other.
Spread Spacing50 cmGap between spread arrows (0 to 200).
Spread Cell Size5 cmArrows starting closer than this count as the same point (0.1 to 500).
Hold Time0.25 sHow 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.

On the DRW Debug Subsystem (search the Blueprint menu for “Debug Subsystem”):

FunctionWhat it does
Set Debug Enabled / Is Debug EnabledTurn drawing on or off, or read it.
Set Debug Category Enabled / Is Debug Category EnabledOne category on or off, or read it.
Apply Debug PresetApply Buoyancy, Movement, All, Minimal or Off.
Get Debug Options / Set Debug OptionsRead or replace all the settings at once (the same fields as Project Settings).
Reset Debug To Project DefaultsGo back to the Project Settings values.
Focus Debug On Actor / Get Debug Focus ActorDraw 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 interaction category.

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).

VariableDefaultValues
drw.WaterQuery.MaxQueries4096The 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.WaterJumpGuard1Smooths 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).

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): message whenever the actor begins play.

Ocean

Message (shortened)LevelWhat to do
This is the bare C++ ocean actor; it draws nothing.ErrorDelete it and place BP_DynamicRealWater (DynamicRealWater Content > Blueprints).
The ocean Blueprint is missing LOD meshes or MPC_DRW.ErrorCompare its defaults with BP_DynamicRealWater.
N DRW oceans in the level; only one is supported.WarningKeep one BP_DynamicRealWater.
Infinite Ocean expects the ocean at X = 0, Y = 0.WarningMove 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.WarningSet its Z to 0.
Shoreline is on but Compute Depthmap is off, so there is no surf.WarningTurn on Compute Depthmap (Grid Settings) or turn Shoreline off.

Pools, lakes and rivers

Message (shortened)LevelWhat to do
No Visual Data assigned.WarningAssign 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.WarningEnable 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.WarningShrink or move the water so it ends at the outlet.

These appear in the Output Log when a floating object is not set up correctly.

MessageMeaningFix
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.

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.