Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Move along the floor, using CurrentFloor and ComputeGroundMovementDelta() to get a movement direction. If a second walkable surface is hit, it will also be moved along using the same approach.
| Name | MoveAlongFloor |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual void MoveAlongFloor
(
const FVector & InVelocity,
float DeltaSeconds,
FStepDownResult * OutStepDownResult
)
Parameters
| Name | Remarks |
|---|---|
| InVelocity | Velocity of movement |
| DeltaSeconds | Time over which movement occurs |
| OutStepDownResult | [Out] If non-null, and a floor check is performed, this will be updated to reflect that result. |