UCharacterMovementComponent::ImmersionDepth

Determine how deep in water the character is immersed.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual float ImmersionDepth() const

Remarks

Determine how deep in water the character is immersed.

Returns

float in range 0.0 = not in water, 1.0 = fully immersed