UCharacterMovementComponent::StartSwimming

Handle start swimming functionality

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

void StartSwimming
(
    FVector OldLocation,
    FVector OldVelocity,
    float timeTick,
    float remainingTime,
    int32 Iterations
)

Remarks

Handle start swimming functionality

Parameters

Parameter

Description

OldLocation

Location on last tick

OldVelocity

velocity at last tick

timeTick

time since at OldLocation

remainingTime

DeltaTime to complete transition to swimming

Iterations

physics iteration count