Components
Components you add to your own actors and pawns.
- Floating objects: DRW_PhysicsBodyComponent (DRW Physics Body), DRW_BuoyancyComponent (DRW Buoyancy), DRW_SmoothReplicationComponent (DRW Smooth Replication)
- Underwater and masking: DRW_WaterlineComponent (DRW Underwater), DRW_SurfaceMaskComponent (DRW Surface Mask)
- Vessels: DRW_VesselMovementComponent (DRW Vessel Movement), DRW_VesselInputComponent (DRW Vessel Input), DRW_VesselCameraComponent (DRW Vessel Camera Component), DRW_VesselPossessionComponent (DRW Vessel Possession), DRW_SeatOccupantComponent (DRW Seat Occupant)
DRW_PhysicsBodyComponent
Section titled “DRW_PhysicsBodyComponent”DRW Physics Body
Describes the floating shape of one mesh: a set of boxes, spheres and capsules, each with a material that sets its density. Air shapes subtract volume, so a hollow hull floats. Shapes can follow bones of a skeletal mesh, and a skeletal mesh with a Physics Asset gets its shapes from it automatically. Use one per mesh; an actor can have several.
Guide: Making objects float, Approximating a hull
Properties
Section titled “Properties”DRW Physics Body
| Property | Default | Description |
|---|---|---|
Target Component NameTargetComponentNameFName | empty | Specifies the name of the component (StaticMeshComponent or SkeletalMeshComponent) within the actor to which the collision shapes should attach. This allows the physics body component to bind to specific meshes for buoyancy and force calculations. Use the exact name of the component as it appears in the Blueprint (e.g., “Cube”, “Mesh”, etc.). |
Main Material TypeMainMaterialTypeEDRW_MaterialType | Wood | The primary material type assigned to the mesh. Influences physical behavior such as density, buoyancy, and interaction response with water (e.g., drag, floatation). Used as a default for any shape that does not have an explicitly overridden material type. |
Enable Water InteractionbEnableWaterInteractionbool | true | Master toggle - if false, no shapes will generate water interactions regardless of per-shape settings |
BoxesBoxesTArray<FDRW_BoxCollisionShape> | Box collision shapes used for buoyancy and physics calculations. Each box contributes to total volume, mass, and force calculations. | |
SpheresSpheresTArray<FDRW_SphereCollisionShape> | Sphere collision shapes used for buoyancy and physics calculations. Each sphere contributes to total volume, mass, and force calculations. | |
CapsulesCapsulesTArray<FDRW_CapsuleCollisionShape> | Capsule collision shapes used for buoyancy and physics calculations. Each capsule contributes to total volume, mass, and force calculations. | |
Use Custom Center Of MassbUseCustomCenterOfMassbool | false | If false, the center of mass will be queried directly from the attached component using Chaos/Unreal’s built in physics system. If true, the center of mass is calculated using DRW’s custom shape based system. This will always set to be true automatically for skeletal meshes that have a proper physics body setup. |
Center Of MassCenterOfMassFVector | Zero Vector | Blueprint read only. |
Center Of Mass OffsetCenterOfMassOffsetFVector | Zero Vector | Manual offset for both Chaos/Unreal’s and DRW’s custom shape based center of mass. |
Total MassTotalMassfloat | 0 | Blueprint read only. |
DRW Physics Body › Interaction Override
| Property | Default | Description |
|---|---|---|
Override Interaction BoundsbOverrideInteractionBoundsbool | false | Override interaction bounds instead of deriving them from physics shapes. Useful for skeletal meshes where physics asset shapes are too small to produce visible water interactions. Does not affect buoyancy calculations. |
Interaction RadiusInteractionRadiusfloat | 100 at least 1 | Effective radius (cm) for interaction effects. Only used when bOverrideInteractionBounds is true. Editable when Override Interaction Bounds. |
Interaction Hull LengthInteractionHullLengthfloat | 200 at least 1 | Hull length along forward axis (cm) for wake patterns. Only used when bOverrideInteractionBounds is true. Editable when Override Interaction Bounds. |
Interaction Hull WidthInteractionHullWidthfloat | 100 at least 1 | Hull width perpendicular to forward (cm) for wake patterns. Only used when bOverrideInteractionBounds is true. Editable when Override Interaction Bounds. |
DRW Physics Body › Replication
| Property | Default | Description |
|---|---|---|
Replicate Body StatebReplicateBodyStatebool | true | Multiplayer: when the target mesh is not the actor’s root (rigs made of several simulating meshes, such as buoys tied to an anchor), the server sends this body’s position, rotation and velocity to clients, and clients stop simulating the mesh and follow the server. Single-body actors are replicated through the actor root and are not affected. |
Body Interpolation DelayBodyInterpolationDelayfloat | 0.1 0 to 0.5 | Seconds clients stay behind the server so they always have two updates to blend between. Raise it if bodies stutter on a poor connection; lower it for less delay. Editable when Replicate Body State. |
Body Max ExtrapolationBodyMaxExtrapolationfloat | 0.25 0 to 1 | Seconds a client keeps moving a body along its last velocity when updates are late, before holding it still. Editable when Replicate Body State. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Debug Draw ShapesDebugDrawShapes | Debug draw shapes in the viewport | ||
Has Active StrokesHasActiveStrokes | Return bool | Check if this component has any active strokes Pure. |
DRW_BuoyancyComponent
Section titled “DRW_BuoyancyComponent”DRW Buoyancy
Makes an actor float. It reads the physics bodies on the actor, samples the water under every shape and applies buoyancy, drag and damping. It works on the ocean, rivers, lakes and pools, and exposes the result to Blueprint through Buoyancy Outputs.
Guide: Making objects float
Properties
Section titled “Properties”DRW Buoyancy › Setup
| Property | Default | Description |
|---|---|---|
Water PositionWaterPositionFVector | Zero Vector | Position of the water surface in world space. |
Enable Multiplayer SupportbEnableMultiplayerSupportbool | true | Enables or disables replication and allows gaining access to owner’s replication settings. DRW vessels always turn it on. |
Playable CharacterbPlayableCharacterbool | false | If true, this buoyancy component is driving a playable character instead of a rigid body. In this mode per shape forces are still computed, but physics forces are not applied directly to the attached component. External character movement logic is expected to consume the aggregated outputs (FDRW_BuoyancyOutput) and apply movement and animation manually. |
DRW Buoyancy › Water Properties
| Property | Default | Description |
|---|---|---|
Water DensityWaterDensityfloat | 1025 900 to 1100 | Density of the water (in kg/m³). Default is 1025 for seawater. Affects the magnitude of buoyant and drag forces. |
Water ViscosityWaterViscosityfloat | 0.010019 0.001 to 0.1 | Viscosity of the water (in Pa*s). Affects drag and damping forces. Higher values result in thicker water and greater resistance to motion. |
In Water ThresholdInWaterThresholdfloat | 0.01 0.001 to 0.5 | Minimum submersion percentage (0.0 to 1.0) required for bIsInWater to be true. Uses percentage of total volume submerged rather than absolute values for stability with large objects. Default 0.01 = 1% of body volume must be submerged. |
DRW Buoyancy › Simulation
| Property | Default | Description |
|---|---|---|
Update ModeUpdateModeEDRWBuoyancyUpdateMode | Fixed Timestep | Controls how buoyancy calculations and force application are timed. - EventTick: Legacy behavior, all in tick (may cause jitter in multiplayer) - FixedOnly: Fixed rate calculations (Best choice for multiplayer scenarios and stable setups) |
Calculation Rate HzCalculationRateHzfloat | 30 1 to 120 | Fixed timestep rate in Hz for buoyancy calculations. Lower values = less CPU but coarser simulation. Recommended: Match your net update frequency (typically 20-30 Hz for games). Shown when Update Mode == Fixed Timestep. |
Hull Mask ColumnsHullMaskColumnsint32 | 12 4 to 32 | Columns per side used to integrate the submerged volume of a shape that touches another actor’s surface mask hull. Only those shapes pay for it; higher is more exact at the hull wall. |
Interpolation StrengthInterpolationStrengthfloat | 0.15 0 to 1 | Blend between the two most recent buoyancy steps: 0 uses the previous step, 1 the newest. Values in between smooth the forces. Shown when Update Mode != Event Tick (Legacy). |
Physics QualityPhysicsQualityEDRWPhysicsQuality | Async | Determines the physics quality mode to use: Async (non blocking), Mixed (hybrid), or Sync (immediate). Impacts task scheduling and simulation responsiveness. |
DRW Buoyancy › Speed Caps
| Property | Default | Description |
|---|---|---|
Max Linear SpeedMaxLinearSpeedfloat | 50 1 to 100 | Speed (m/s) above which the speed fed into the drag calculation is eased off, so a very fast impact cannot produce an explosive drag force. Does not slow the body by itself. |
Max Angular SpeedMaxAngularSpeedfloat | 10 0.5 to 20 | Spin rate (rad/s) above which the spin fed into the rotational drag calculation is eased off. Does not slow the body by itself. |
Velocity Damping StrengthVelocityDampingStrengthfloat | 0.1 0.01 to 1 | How quickly speeds above the caps are eased off (higher = closer to a hard cap). |
DRW Buoyancy › Damping
| Property | Default | Description |
|---|---|---|
Enable Heave DampingbEnableHeaveDampingbool | true | Slows the body’s bobbing (up and down). |
Heave Damping CoefficientHeaveDampingCoefficientfloat | 0.7 0.1 to 2 | How strongly bobbing is damped, as a fraction of the damping that would stop it without any overshoot. 0.3 = bobs a few times before settling. 0.7 = settles with little overshoot. 1 = no overshoot at all. Shown when Enable Heave Damping. |
Heave Added Mass CoefficientHeaveAddedMassCoefficientfloat | 1 0.3 to 2 | How much water moves along with the body when it bobs, which makes the bobbing slower and heavier. Around 1 for typical hulls. Shown when Enable Heave Damping. |
Heave Velocity ThresholdHeaveVelocityThresholdfloat | 5 0.5 to 30 | Vertical speed (cm/s) below which heave damping fades out, so a body at rest is not held in place. Shown when Enable Heave Damping. |
Sway Damping RatioSwayDampingRatiofloat | 0.5 0 to 2 | Slows the body’s sideways drifting. 0 = off. 0.5 = drifts noticeably less than the waves push it. 1 = strongly held. Scales with how deep the body sits and with the size of the current waves automatically. Replicated. |
Water Motion CouplingWaterMotionCouplingfloat | 1 0 to 1 | How much the sideways damping follows the moving water (ocean waves and river current) instead of still water. 0 = damped against still water, 1 = the object moves with the water. Replicated. |
Roll Pitch Damping RatioRollPitchDampingRatiofloat | 0.5 0 to 2 | Slows the body’s rocking (roll and pitch), so it settles quickly once the waves calm down. 0 = off. 0.5 = settles within a few rocks. 1+ = barely rocks back after a tilt. Scales with how deep the body sits and with the size of the current waves automatically. Replicated. |
Yaw Damping RatioYawDampingRatiofloat | 0.5 0 to 2 | Slows the body turning around its vertical axis, so waves cannot spin it up. 0 = off. 0.5 = turns settle quickly. Keep it low on steered vessels; their rudder and keel handle yaw. Scales with how deep the body sits and with the size of the current waves automatically. Replicated. |
Rotational Drag CoefficientRotationalDragCoefficientfloat | 1 0 to 4 | How strongly the water resists fast spinning or tumbling, on top of the three ratios above. The resistance grows with shape size and spin speed, so large flat-sided boxes are slowed the most and spheres are not slowed at all. 1 = realistic for flat faces. 0 = off. Replicated. |
DRW Buoyancy › Slamming
| Property | Default | Description |
|---|---|---|
Enable SlammingbEnableSlammingbool | true | Enables slamming/impact forces when objects enter water at high speed. Prevents unrealistic deep penetration and provides energy absorption on impact. |
Slamming CoefficientSlammingCoefficientfloat | 1 0.1 to 5 | Slamming coefficient based on hull geometry. Higher values = more impact resistance. Typical values: 0.5-1 for spheres, 1-2 for V-hulls, 2-4 for flat bottoms. Shown when Enable Slamming. |
Slamming Velocity ThresholdSlammingVelocityThresholdfloat | 5 10 to 500 | Minimum vertical velocity (cm/s) required to trigger slamming forces. Prevents slamming from activating during gentle wave motion. Shown when Enable Slamming. |
Enable Exit DampingbEnableExitDampingbool | true | Enables resistance when objects exit the water surface. Creates suction effect and prevents unrealistic “popping out” behavior. Shown when Enable Slamming. |
Exit Damping RatioExitDampingRatiofloat | 0.7 0.1 to 1 | Exit damping coefficient as fraction of slamming coefficient. Water exit typically has less resistance than entry. Shown when Enable Slamming and Enable Exit Damping. |
DRW Buoyancy › Sequencer
| Property | Default | Description |
|---|---|---|
Follow Water In SequencerbFollowWaterInSequencerbool | true | While a DRW Water Time track plays, rigid bodies ride the waves the same way on every replay. Ragdolls keep simulating. |
Sequencer Follow WeightSequencerFollowWeightfloat | 1 0 to 1 | How much the water drives the body in Sequencer. 0 leaves it to its own transform keys. Keyable in Sequencer. |
Sequencer Draft OffsetSequencerDraftOffsetfloat | 0 -500 to 500 cm | Extra depth the body sits at in the water in Sequencer. Negative lifts it. Keyable in Sequencer. |
Sequencer Tilt ResponseSequencerTiltResponsefloat | 1 0 to 3 | How strongly the body tilts with the waves in Sequencer. 0 keeps its start attitude. Keyable in Sequencer. |
Sequencer Bob StrengthSequencerBobStrengthfloat | 1 0 to 3 | How strongly the body rises and falls with the waves in Sequencer. 0 holds its start height. Keyable in Sequencer. |
DRW Buoyancy › Optimization
| Property | Default | Description |
|---|---|---|
Sleep When Out Of SightbSleepWhenOutOfSightbool | false | Puts the body to sleep while no player can see it, and wakes it back on the current wave when one can. Runs on the server. Sight is a view cone around each player’s camera, so walls and terrain do not hide the body. Anything that wakes the body (a collision, a constraint, a thrust force) wakes buoyancy with it. Replicated. |
Out Of Sight DelayOutOfSightDelayfloat | 3 0 to 60 s | Seconds the body must stay out of sight, while in the water, before it goes to sleep. Shown when Sleep When Out Of Sight. |
Always Awake RadiusAlwaysAwakeRadiusfloat | 10000 0 to 100000 cm | Within this distance of any player’s camera the body always stays awake, even behind the camera. Shown when Sleep When Out Of Sight. |
Sight Half AngleSightHalfAnglefloat | 75 10 to 180 degrees | Half-angle of the view cone that counts as in sight. Generous by default because the server does not know each client’s field of view or aspect ratio. Shown when Sleep When Out Of Sight. |
Max Sight DistanceMaxSightDistancefloat | 0 0 to 10000000 cm | Beyond this distance the body counts as out of sight even inside the view cone. 0 = no limit. Shown when Sleep When Out Of Sight. |
DRW Buoyancy › Output
| Property | Default | Description |
|---|---|---|
Buoyancy OutputsBuoyancyOutputsTArray<FDRW_BuoyancyOutput> | Replicated array containing per body buoyancy output data, including average force, torque, wave surface position, and predicted rotation. Updated every tick on the server and automatically synchronized to clients. This data can be used by external systems (such as swimming or vehicle components) to simulate responsive water interaction. On clients, updates to this array trigger OnBuoyancyOutputsUpdated. Blueprint read only. Replicated. | |
Is In WaterbIsInWaterbool | false | Returns whether the actor is interacting with the water or not. Replicated from server. Blueprint read only. Replicated. |
Overlapping Water BodyOverlappingWaterBodyTWeakObjectPtr<ADRW_WaterBody> | Blueprint read only. |
DRW Buoyancy › Advanced
| Property | Default | Description |
|---|---|---|
Enable PredictionbEnablePredictionbool | true | Used only when a shape falls back to the simpler water reading (for example when the level runs out of water samples). Leave at the default. |
Heightmap History SizeHeightmapHistorySizeint32 | 4 1 to 16 | Used only when a shape falls back to the simpler water reading, together with Enable Prediction. Leave at the default. |
Interaction Height MultiplierInteractionHeightMultiplierfloat | 1 0 to 10 | Multiplier for interaction height contribution to buoyancy. Controls how much water interaction effects (wakes, ripples) affect buoyancy calculations. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Calculate Buoyancy OutputCalculateBuoyancyOutput | |||
Get Interpolated OutputGetInterpolatedOutput | Body Index int32 | Return FDRW_BuoyancyOutput | Gets interpolated buoyancy output for smooth client-side consumption. Use this instead of reading BuoyancyOutputs directly for smoother results in multiplayer. On the server, this returns the current output directly. |
Is Sleeping Out Of SightIsSleepingOutOfSight | Return bool | True while the body sleeps because no player can see it (Sleep When Out Of Sight), including the short wake-up. Pure. | |
Keep AwakeKeepAwake | Keeps the body awake out of sight, and wakes it if it sleeps. Call it every tick while something drives the body (AI thrust, a scripted path); it may sleep again once Out Of Sight Delay has passed since the last call. DRW vessels call it themselves while they have input. Runs on the server. | ||
Is In Water BodyIsInWaterBody | Return bool | Pure. | |
Get Water BodyGetWaterBody | Return ADRW_WaterBody* | Pure. |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Buoyancy Outputs Updated | Updated Outputs TArray<FDRW_BuoyancyOutput> | Delegate event triggered whenever the buoyancy output data is updated on clients. This is only called on clients (not the server) when the replicated BuoyancyOutputs array changes. You can bind to this event to react to new buoyancy data, e.g. to control swimming, movement, or visual effects based on wave interaction. |
DRW_SmoothReplicationComponent
Section titled “DRW_SmoothReplicationComponent”DRW Smooth Replication
Makes replicated floating actors move smoothly on clients. It changes only what clients see and leaves the server’s simulation untouched. It does not support skeletal meshes.
Guide: Multiplayer checklist
Properties
Section titled “Properties”DRW Replication Smoothing › Core
| Property | Default | Description |
|---|---|---|
Enable SmoothingbEnableSmoothingbool | true | |
Use Poll Based DetectionbUsePollBasedDetectionbool | true | Use poll based detection instead of explicit notifications. Less accurate but works without modifying replication code. |
DRW Replication Smoothing › Timing
| Property | Default | Description |
|---|---|---|
Interpolation Relative TimeInterpolationRelativeTimefloat | 0.1 0 to 0.5 | How far in the past (seconds) to render relative to owner time. Higher = more interpolation buffer, smoother but more delay. Lower = more responsive but more extrapolation during lag spikes. |
Adaptive Interpolation TimebAdaptiveInterpolationTimebool | true | Raises the delay above InterpolationRelativeTime when updates arrive further apart, so late updates do not cause extrapolation. |
Max Interpolation Relative TimeMaxInterpolationRelativeTimefloat | 0.3 0 to 1 | Largest delay the adaptive mode may use (seconds). Editable when Adaptive Interpolation Time. |
Time SmoothingTimeSmoothingfloat | 2 0 to 5 | How long to smooth owner time offset changes (seconds). Prevents jitter from variable latency. |
Send Rate HzSendRateHzfloat | 30 1 to 120 | Expected network send rate. Used to size the time offset buffer. On DRW vessels it is set from the vessel’s Net Update Rate. |
Use Hermite InterpolationbUseHermiteInterpolationbool | true | Smooths the path through direction changes using the replicated velocities. Turn it off if you see overshoot on fast direction changes. |
DRW Replication Smoothing › Lerp
| Property | Default | Description |
|---|---|---|
Position Lerp SpeedPositionLerpSpeedfloat | 0.85 0 to 1 | How fast to lerp position toward interpolated target each frame. 0 = never move, 1 = instant snap. Lower = smoother but sluggish. |
Rotation Lerp SpeedRotationLerpSpeedfloat | 0.85 0 to 1 | How fast to lerp rotation toward interpolated target. |
Scale Lerp SpeedScaleLerpSpeedfloat | 0.85 0 to 1 | How fast to lerp scale toward interpolated target. |
Velocity Smoothing RateVelocitySmoothingRatefloat | 10 1 to 30 |
DRW Replication Smoothing › Thresholds
| Property | Default | Description |
|---|---|---|
Received Position ThresholdReceivedPositionThresholdfloat | 0 0 to 10 | Position wont be updated unless it differs by more than this amount (cm). Helps filter out micro jitter. Set to 0 to always update. |
Received Rotation ThresholdReceivedRotationThresholdfloat | 0 0 to 10 | Rotation wont be updated unless it differs by more than this amount (degrees). Helps filter out micro jitter. Set to 0 to always update. |
DRW Replication Smoothing › Extrapolation
| Property | Default | Description |
|---|---|---|
Enable ExtrapolationbEnableExtrapolationbool | true | Enable extrapolation when we run out of states |
Extrapolation Time LimitExtrapolationTimeLimitfloat | 0.5 0 to 2 | Maximum time to extrapolate before stopping (seconds) |
Extrapolation Distance LimitExtrapolationDistanceLimitfloat | 500 at least 0 | Maximum distance to extrapolate before stopping (cm) |
DRW Replication Smoothing › Snap
| Property | Default | Description |
|---|---|---|
Position Snap ThresholdPositionSnapThresholdfloat | 500 at least 0 | Snap to position if distance exceeds this (cm). 0 = disabled. |
Rotation Snap ThresholdRotationSnapThresholdfloat | 90 0 to 180 | Snap to rotation if angle exceeds this (degrees). 0 = disabled. |
Smooth Replication
| Property | Default | Description |
|---|---|---|
Calculated VelocityCalculatedVelocityFVector | Zero Vector | Velocity calculated from actual interpolated movement Blueprint read only. |
Calculated Angular VelocityCalculatedAngularVelocityFVector | Zero Vector | Angular velocity calculated from actual interpolated movement (degrees/sec) Blueprint read only. |
DRW Replication Smoothing
| Property | Default | Description |
|---|---|---|
Calculated AccelerationCalculatedAccelerationFVector | Zero Vector | Blueprint read only. |
Calculated SpeedCalculatedSpeedfloat | 0 | Blueprint read only. |
Calculated Angular SpeedCalculatedAngularSpeedfloat | 0 | Blueprint read only. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Notify Replicated Movement UpdateNotifyReplicatedMovementUpdate | Call to notify of a new replicated state (when using poll based detection) | ||
Receive Network StateReceiveNetworkState | Owner Timestamp floatPosition FVectorRotation FQuatLinear Velocity FVectorAngular Velocity FVectorAt Positional Rest bool = falseAt Rotational Rest bool = falseTeleport bool = false | Preferred method: Call with owners timestamp for accurate time sync. This gives much better results than poll based detection but it is what it is… | |
Snap To Replicated TransformSnapToReplicatedTransform | |||
Clear BufferClearBuffer | |||
TeleportTeleport | |||
Get Smoothed TransformGetSmoothedTransform | Return FTransform | Pure. | |
Is SmoothingIsSmoothing | Return bool | Pure. | |
Is ExtrapolatingIsExtrapolating | Return bool | Pure. | |
Get Jitter StatsGetJitterStats | Return FDRWJitterStats | Pure. | |
Get Interpolation TimeGetInterpolationTime | Return float | Pure. | |
Get Owner TimeGetOwnerTime | Return float | Pure. |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Teleport | Error Magnitude float |
DRW_WaterlineComponent
Section titled “DRW_WaterlineComponent”DRW Underwater
Renders the underwater look for the local player’s camera in the ocean, rivers, lakes and pools. It is added automatically to the pawn each local player controls (Project Settings > Plugins > Dynamic Real Water > Auto Add Underwater); add it by hand only to change its settings on one pawn. While an ocean is in the level, the ocean’s own underwater settings override these.
Guide: Underwater
Properties
Section titled “Properties”DRW Underwater
| Property | Default | Description |
|---|---|---|
Can Interact With WaterbCanInteractWithWaterbool | false | Show the underwater look only while this pawn’s DRW Buoyancy component reports it in water (swimmers, divers). Off: shown whenever the camera is below a water surface. |
Underwater Exposure CompensationUnderwaterExposureCompensationfloat | -0.5 -8 to 8 | Exposure compensation while the camera is underwater, in stops (negative darkens, -1 halves the brightness). Fades in over the first meter below the surface. While active it replaces the scene’s own exposure compensation; 0 leaves exposure untouched. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Underwater Depth DarkeningUnderwaterDepthDarkeningfloat | 0.5 0 to 1 | How much of the light lost to depth stays visible. Auto exposure brightens deep water back to daylight levels; this keeps part of the darkening, computed from the underwater material’s absorption and scattering at the camera’s depth. 0 = full auto exposure (no darkening), 1 = like a fixed-exposure camera. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Underwater Exposure AdaptationUnderwaterExposureAdaptationfloat | 4 0 to 10 | Stops the camera may brighten underwater beyond the scene’s own exposure range. 0 keeps the scene’s range. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Underwater Sky ColorUnderwaterSkyColorfloat | 0 0 to 1 | How much the sky’s color tints the water. 0 keeps the water’s own color, 1 takes the sky’s. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Underwater Lens Flare IntensityUnderwaterLensFlareIntensityfloat | 0.1 0 to 16 | Lens flare intensity while the camera is underwater (the engine default is 1). Fades in over the first meter below the surface. While active it replaces the scene’s own lens flare intensity; 1 leaves it untouched. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Refracted Sun DiscbRefractedSunDiscbool | true | Draws the sun underwater where refraction puts it (closer to straight up, bent by the waves) and hides the sky’s own sun disc, which sits at the in-air position, while the camera is below the surface. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Underwater Light RangeUnderwaterLightRangefloat | 5000 at least 0 cm | Underwater point and spot lights (torches, boat lamps) scatter into visible beams. Up to 8 lights below the surface are used, nearest first; lights whose reach ends farther than this from the camera (cm) are skipped. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Post ProcessPostProcessUPostProcessComponent* | Blueprint read only. | |
ActivatedbActivatedbool | false | Blueprint read only. |
DRW Underwater › Sun Shadows
| Property | Default | Description |
|---|---|---|
Sun ShadowsbSunShadowsbool | true | Renders depth maps along the refracted and the in-air sun direction around the camera. Underwater, the engine’s own sun shadow (cast along the in-air direction) is replaced by the refracted one, and light shafts and caustics stop at objects. Two depth-only captures per frame while underwater. Overridden by the ocean’s Underwater settings while an ocean is in the level. |
Sun Shadow ResolutionSunShadowResolutionint32 | 512 128 to 2048 | Resolution of the sun shadow depth map. Higher gives sharper shadow edges at a higher capture cost. Overridden by the ocean’s Underwater settings while an ocean is in the level. Advanced. |
Sun Shadow CoverageSunShadowCoveragefloat | 6400 1000 to 51200 cm | World size covered by the sun shadow map around the camera. Shafts beyond half of this are unshadowed. Overridden by the ocean’s Underwater settings while an ocean is in the level. Advanced. |
Sun Shadow BiasSunShadowBiasfloat | 25 0 to 500 cm | Depth tolerance before a point counts as shadowed. Raise it if the seafloor shows dark speckles. Overridden by the ocean’s Underwater settings while an ocean is in the level. Advanced. |
DRW_SurfaceMaskComponent
Section titled “DRW_SurfaceMaskComponent”DRW Surface Mask
Keeps water out of a hull’s dry interior, set by a closed mask mesh with cooked collision. The water surface is hidden inside it; other actors’ buoyancy inside sees the water at the hull bottom, so cargo in a dry hold does not float; optionally the underwater look turns off while the camera is inside. Settings are server-authoritative on replicated actors.
Guide: Caves, docks and hull interiors
Properties
Section titled “Properties”| Property | Default | Description |
|---|---|---|
Mask MeshMaskMeshUStaticMesh* | None | Closed volume of the hull’s dry interior. Its collision trimesh is read on every machine (dedicated servers included), so the mesh must have collision cooked. Prefer SetMaskMesh at runtime. Replicated. |
EnabledbEnabledbool | true | Prefer SetMaskEnabled at runtime. Replicated. |
Mask BuoyancybMaskBuoyancybool | true | Inside the hull, other actors’ buoyancy sees the water pushed down to the hull bottom, so cargo in a dry hold does not float. Water above the hull top (a swamped hull) counts as real. The mask’s own actor is never masked. Prefer SetMaskBuoyancy at runtime. Replicated. |
Mask Underwater EffectsbMaskUnderwaterEffectsbool | true | The underwater post-process turns off while the camera is inside the hull volume and the water has not risen over the hull top. Prefer SetMaskUnderwaterEffects at runtime. Replicated. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Set Mask EnabledSetMaskEnabled | New Enabled bool | Server-authoritative on replicated actors; calls from clients are ignored. | |
Set Mask MeshSetMaskMesh | New Mesh UStaticMesh* | Server-authoritative on replicated actors; calls from clients are ignored. Every machine re-bakes the hull footprint from the new mesh. | |
Set Mask BuoyancySetMaskBuoyancy | New Mask Buoyancy bool | Server-authoritative on replicated actors; calls from clients are ignored. | |
Set Mask Underwater EffectsSetMaskUnderwaterEffects | New Mask Underwater Effects bool | Server-authoritative on replicated actors; calls from clients are ignored. |
DRW_VesselMovementComponent
Section titled “DRW_VesselMovementComponent”DRW Vessel Movement
Applies propulsion, steering and resistance to a vessel: engines, jets, sails, paddles and oars, rudders and other control surfaces, planing and foiling. The buoyancy component handles floating; this component handles driving.
Guide: Engines, sails, rudders and foils
Properties
Section titled “Properties”| Property | Default | Description |
|---|---|---|
Calculation Rate HzCalculationRateHzfloat | 30 1 to 120 | Fixed timestep rate in Hz for force calculations. Should match BuoyancyComponent’s CalculationRateHz for synchronized simulation. |
Interpolation StrengthInterpolationStrengthfloat | 0.85 0 to 1 | Blend between the two most recent movement steps: 0 applies each new step at once, higher values blend in more of the previous step. |
Force MultiplierForceMultiplierfloat | 1 0.1 to 10 | Global force multiplier for tuning. 1.0 = Physically accurate, adjust for gameplay feel. |
Turn Assist MultiplierTurnAssistMultiplierfloat | 1 1 to 50 | Multiplier for yaw torque from control surfaces (rudder, thrusters). Compensates for UE’s inertia tensor making large vessels nearly impossible to turn. 1.0 = Physically accurate (fine for small boats). Large vessels (>50m) typically need 5-20 for responsive turning. |
True Wind VelocityTrueWindVelocityFVector | Zero Vector | Wind interface for sail calculations |
Enable WindagebEnableWindagebool | true | Enable air resistance (windage) calculation. Affects high-speed vessels and those with significant superstructure. |
Windage Frontal AreaWindageFrontalAreafloat | 0 at least 0 | Frontal area for wind resistance (cm²). 0 = estimated from the hull’s beam and freeboard. |
Windage Lateral AreaWindageLateralAreafloat | 0 at least 0 | Side area for wind pressure (cm²). 0 = estimated from the hull’s length and freeboard. |
Windage Drag CoefficientWindageDragCoefficientfloat | 0.8 0.1 to 2 | Air drag coefficient for windage. 0.3-0.5 for streamlined vessels, 0.8-1.2 for boxy superstructures. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
InitializeInitialize | In Vessel Data UDRW_VesselDataAsset*In Physics Root UPrimitiveComponent*In Buoyancy UDRW_BuoyancyComponent* | Initialize the component with vessel configuration. Called by VesselPawn after setting VesselData. | |
Set InputSetInput | New Input FDRW_VesselInput | Set current input state. Called each tick by owning pawn. | |
Get Movement OutputGetMovementOutput | Return const FDRW_VesselMovementOutput& | Get current movement output data Pure. | |
Get Movement StateGetMovementState | Return EDRW_VesselMovementState | Get current movement state Pure. | |
Get SpeedGetSpeed | Return float | Get speed in cm/s Pure. | |
Get Speed KnotsGetSpeedKnots | Return float | Get speed in knots Pure. | |
Get Froude NumberGetFroudeNumber | Return float | Get current Froude number Pure. | |
Is PlaningIsPlaning | Return bool | Is the vessel currently planing? Pure. | |
Is FoilingIsFoiling | Return bool | Is the vessel currently foiling? Pure. | |
Get Propulsion StateGetPropulsionState | Index int32 | Return boolOut State FDRW_PropulsionState | Get propulsion state for a specific source Pure. |
Get Control Surface StateGetControlSurfaceState | Index int32 | Return boolOut State FDRW_ControlSurfaceState | Get control surface state Pure. |
Set Wind VelocitySetWindVelocity | Wind Velocity Cm Per Sec FVector | ||
Get Apparent WindGetApparentWind | Return FVector | Pure. |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Movement State Changed | New State EDRW_VesselMovementState | Fired when movement state changes (displacement <-> planing <-> foiling) |
DRW_VesselInputComponent
Section titled “DRW_VesselInputComponent”DRW Vessel Input
Reads Enhanced Input for a vessel and sends it to the server in multiplayer. Input can be created automatically, come from a Vessel Input Config data asset, or use input actions you assign.
Guide: Your first vessel
Properties
Section titled “Properties”Input
| Property | Default | Description |
|---|---|---|
Input SourceInputSourceEDRW_VesselInputSource | Auto: Keyboard + Mouse | How to configure input bindings |
Input › Custom Config
| Property | Default | Description |
|---|---|---|
Input ConfigInputConfigUDRW_VesselInputConfig* | Input configuration asset (used when InputSource = CustomConfig) Shown when Input Source == Custom: DataAsset. |
Input › Camera
| Property | Default | Description |
|---|---|---|
Camera ComponentCameraComponentTWeakObjectPtr<UDRW_VesselCameraComponent> | Camera component to control. If not set, will auto-find on owner. | |
Invert Camera YbInvertCameraYbool | false | Invert camera Y axis |
Camera Look SensitivityCameraLookSensitivityfloat | 1 0.1 to 5 | Camera look sensitivity multiplier |
Camera Zoom SensitivityCameraZoomSensitivityfloat | 1 0.1 to 5 | Camera zoom sensitivity multiplier |
Input › Custom Actions
| Property | Default | Description |
|---|---|---|
IA ThrottleIA_ThrottleUInputAction* | Throttle: 1D Axis (-1 to 1) Shown when Input Source == Custom: Individual Actions. | |
IA SteeringIA_SteeringUInputAction* | Steering: 1D Axis (-1 to 1) Shown when Input Source == Custom: Individual Actions. | |
IA Trim LeftIA_TrimLeftUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Trim RightIA_TrimRightUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Main SheetIA_MainSheetUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Jib SheetIA_JibSheetUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA SpinnakerIA_SpinnakerUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA CenterboardIA_CenterboardUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Bow ThrusterIA_BowThrusterUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Stern ThrusterIA_SternThrusterUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Left PaddleIA_LeftPaddleUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Right PaddleIA_RightPaddleUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Rowing PowerIA_RowingPowerUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
IA Foil AngleIA_FoilAngleUInputAction* | Shown when Input Source == Custom: Individual Actions. | |
Custom Mapping ContextCustomMappingContextUInputMappingContext* | Mapping context (used with CustomActions) Shown when Input Source == Custom: Individual Actions. | |
Mapping Context PriorityMappingContextPriorityint32 | 0 | Priority for the mapping context Shown when Input Source == Custom: Individual Actions. |
Input › Custom Actions › Camera
| Property | Default | Description |
|---|---|---|
IA Camera LookIA_CameraLookUInputAction* | Camera Look: 2D Axis Shown when Input Source == Custom: Individual Actions. | |
IA Camera ZoomIA_CameraZoomUInputAction* | Camera Zoom: 1D Axis Shown when Input Source == Custom: Individual Actions. | |
IA Camera Cycle ModeIA_CameraCycleModeUInputAction* | Cycle Camera Mode: Bool Shown when Input Source == Custom: Individual Actions. | |
IA Camera First PersonIA_CameraFirstPersonUInputAction* | Toggle First Person: Bool Shown when Input Source == Custom: Individual Actions. | |
IA Camera ResetIA_CameraResetUInputAction* | Reset Camera: Bool Shown when Input Source == Custom: Individual Actions. |
Input › Settings
| Property | Default | Description |
|---|---|---|
Input SmoothingInputSmoothingfloat | 0 0 to 0.99 | Smoothing for analog inputs (0 = none, 1 = heavy) |
Dead ZoneDeadZonefloat | 0.1 0 to 0.5 | Dead zone for analog inputs |
Input › Replication
| Property | Default | Description |
|---|---|---|
Input Send RateInputSendRatefloat | 30 1 to 60 | How often to send input to server (in seconds). Lower = more responsive but more bandwidth |
Input Change ToleranceInputChangeTolerancefloat | 0.01 0.001 to 0.1 | Minimum input change threshold to trigger a network send (prevents spam) |
Send Periodic Full StatebSendPeriodicFullStatebool | true | Send full input state periodically even if unchanged (for reliability) |
Full State Send IntervalFullStateSendIntervalfloat | 0.5 0.1 to 2 | Interval for full state sends when input hasn’t changed Editable when Send Periodic Full State. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Get Local InputGetLocalInput | Return const FDRW_VesselInput& | Get the current local input state Pure. | |
Is Processing InputIsProcessingInput | Return bool | Check if this component is processing input (locally controlled) Pure. | |
Force Replicate InputForceReplicateInput | Force send current input to server (use sparingly) |
DRW_VesselCameraComponent
Section titled “DRW_VesselCameraComponent”DRW Vessel Camera Component
A boat camera with horizon stabilization, smoothing that absorbs wave motion, speed-based field of view and zoom, several camera modes and collision avoidance.
Guide: Your first vessel
Properties
Section titled “Properties”Camera › Config
| Property | Default | Description |
|---|---|---|
ConfigConfigFDRW_VesselCameraConfig |
Camera › Stabilization
| Property | Default | Description |
|---|---|---|
StabilizationStabilizationFDRW_CameraStabilization |
Camera › Speed Effects
| Property | Default | Description |
|---|---|---|
Speed EffectsSpeedEffectsFDRW_CameraSpeedEffects |
Camera › Input
| Property | Default | Description |
|---|---|---|
Invert Look XbInvertLookXbool | false | |
Invert Look YbInvertLookYbool | false | |
Zoom SpeedZoomSpeedfloat | 500 at least 100 | Zoom speed (arm length change per second per unit input) |
Look SensitivityLookSensitivityfloat | 0.5 at least 0.1 | |
Recenter SpeedRecenterSpeedfloat | 1 at least 0 | How fast the camera swings back behind the vessel when there is no look input. Higher is faster. |
Min Pitch OffsetMinPitchOffsetfloat | -45 -89 to 89 | Clamp for pitch offset (degrees) |
Max Pitch OffsetMaxPitchOffsetfloat | 30 -89 to 89 |
Camera › Collision
| Property | Default | Description |
|---|---|---|
Do Collision TestbDoCollisionTestbool | true | |
Collision Probe SizeCollisionProbeSizefloat | 12 at least 1 | |
Collision ChannelCollisionChannelECollisionChannel | Camera | Collision channel to use |
Collision Smooth SpeedCollisionSmoothSpeedfloat | 10 1 to 50 |
Components
| Property | Default | Description |
|---|---|---|
Spring ArmSpringArmUSpringArmComponent* | Spring arm for third person camera positioning - visible in editor Read only. | |
CameraCameraUCameraComponent* | Main camera - visible in editor Read only. |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Add Look InputAddLookInput | Input FVector2D | Add look input (for orbit/freelook modes, or third person offset) | |
Add Zoom InputAddZoomInput | Input float | Add zoom input (-1 to 1) | |
Initialize For PossessionInitializeForPossession | Initialize camera to match vessel rotation - call this on possession | ||
Get CameraGetCamera | Return UCameraComponent* | Get the camera component Pure. | |
Get Spring ArmGetSpringArm | Return USpringArmComponent* | Get the spring arm component Pure. | |
Get Smoothed LocationGetSmoothedLocation | Return FVector | Get current smoothed camera location (world space) Pure. | |
Get Smoothed RotationGetSmoothedRotation | Return FRotator | Get current smoothed camera rotation (world space) Pure. | |
Get Current FOVGetCurrentFOV | Return float | Get current field of view Pure. |
DRW_VesselPossessionComponent
Section titled “DRW_VesselPossessionComponent”DRW Vessel Possession
Lets any pawn take direct control of a vessel pawn and return to its own body afterwards. It handles the server request and the controller swap.
Guide: Possession vs seats
Properties
Section titled “Properties”| Property | Default | Description |
|---|---|---|
Search RangeSearchRangefloat | 500 | Default search range for FindNearestVesselPawnDefault (cm) |
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Request Possess VesselRequestPossessVessel | Target Vessel ADRW_VesselPawn* | Return bool | Request to possess a VesselPawn. Sends server RPC if needed. Returns True if the request was sent (not necessarily successful yet) |
Find Nearest Vessel PawnFindNearestVesselPawn | Range float | Return ADRW_VesselPawn* | Find the nearest unpossessed VesselPawn within range. Search radius in cm Returns Nearest unpossessed VesselPawn, or nullptr |
Find Nearest Vessel Pawn DefaultFindNearestVesselPawnDefault | Return ADRW_VesselPawn* | Find nearest VesselPawn using the default SearchRange |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Vessel Possessed | Component UDRW_VesselPossessionComponent*Vessel ADRW_VesselPawn* | Fired when this pawn’s controller successfully possesses a VesselPawn |
| On Returned From Vessel | Component UDRW_VesselPossessionComponent*Vessel ADRW_VesselPawn* | Fired when the controller returns to this pawn after exiting a vessel |
DRW_SeatOccupantComponent
Section titled “DRW_SeatOccupantComponent”DRW Seat Occupant
Lets any pawn or character occupy vessel seats. While seated, its input reaches the vessel through the server.
Guide: Possession vs seats
Functions
Section titled “Functions”| Function | Inputs | Outputs | Description |
|---|---|---|---|
Request Occupy SeatRequestOccupySeat | Seat ADRW_VesselSeat* | Request to occupy a seat - sends to server if needed. Sets TargetSeat immediately for client-side tracking. | |
Request Vacate SeatRequestVacateSeat | Request to vacate current seat - uses GetTargetOrCurrentSeat() to handle replication delay | ||
Find Nearest SeatFindNearestSeat | Range float = 500 | Return ADRW_VesselSeat* | Find the nearest unoccupied seat within range. Uses sphere overlap query. Search radius in cm Returns Nearest unoccupied seat, or nullptr |
Get Current SeatGetCurrentSeat | Return ADRW_VesselSeat* | Get the seat this pawn is currently occupying (replicated). Returns nullptr if not in any seat. Pure. | |
Get Target Or Current SeatGetTargetOrCurrentSeat | Return ADRW_VesselSeat* | Get CurrentSeat if valid, else TargetSeat. Handles the client replication delay where CurrentSeat hasn’t been set yet but TargetSeat was set locally in RequestOccupySeat. Pure. | |
Is In SeatIsInSeat | Return bool | Check if currently occupying any seat. Pure. | |
Is In Seat Or PendingIsInSeatOrPending | Return bool | Check if in a seat or waiting for server confirmation. Pure. | |
Get Current VesselGetCurrentVessel | Return ADRW_Vessel* | Get the vessel of the current seat (convenience function). Returns nullptr if not in a seat or seat has no linked vessel. Pure. |
Events
Section titled “Events”| Event | Signature | Description |
|---|---|---|
| On Seat Entered | Component UDRW_SeatOccupantComponent*Seat ADRW_VesselSeat* | Fired when occupant enters a seat (CurrentSeat set to non-null) |
| On Seat Exited | Component UDRW_SeatOccupantComponent*Seat ADRW_VesselSeat* | Fired when occupant exits a seat (CurrentSeat set to null) |