Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/UCharacterMovementComponent
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 |
virtual FRotator ComputeOrientToMovementRotation
&40;
const FRotator & CurrentRotation,
float DeltaTime,
FRotator & DeltaRotation
&41; const
Remarks
Compute a target rotation based on current movement. Used by PhysicsRotation() when bOrientRotationToMovement is true. Default implementation targets a rotation based on Acceleration. The target rotation given current movement.
Parameters
| Name | Description |
|---|---|
| CurrentRotation | Current rotation of the Character |
| DeltaTime | Time slice for this movement |
| DeltaRotation | Proposed rotation change based simply on DeltaTime * RotationRate |