UCharacterMovementComponent::IsSwimming

Returns true if currently swimming (moving through a fluid volume)

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UNavMovementComponent::IsSwimming()

UCharacterMovementComponent::IsSwimming()

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 bool IsSwimming() const

Remarks

Returns true if currently swimming (moving through a fluid volume)