# Top Down Character Movement 

**URL:** <https://forums.unrealengine.com/t/top-down-character-movement/2493937>\
**Category:** Character & Animation\
**Tags:** unreal-engine, CPP, question\
**Created:** [May 6, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/top-down-character-movement/2493937 "2025-05-06T17:14:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GraveRaider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GraveRaider](https://forums.unrealengine.com/u/GraveRaider)\
**Post date:** [May 6, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/top-down-character-movement/2493937/1 "2025-05-06T17:14:28Z")

</div>

Hello everybody

Question is about how to properly implement movement for top down game.  
I have movement of the character with WASD, but can’t understand how to make character to look where cursor is without changing vector of movement?

I have movement setup as PlayerMovementComponent with Mapping

```auto
void ADefaultCharacter::SetupPlayerInputComponent(UInputComponent *PlayerInputComponent) {
       Super::SetupPlayerInputComponent(PlayerInputComponent);
       PlayerInputComponent->BindAxis("MoveForward", this, &ADefaultCharacter::MoveForward);
       PlayerInputComponent->BindAxis("MoveRight", this, &ADefaultCharacter::MoveRight);
}

```

Character moves properly but model only looks forward.  
When I try rotating character where mouse points

```auto
void ADefaultCharacter::Tick(float DeltaTime) {
  Super::Tick(DeltaTime);

  APlayerController *PC = UGameplayStatics::GetPlayerController(GetWorld(), 0);
  if (PC) {
    FHitResult ResultHit;
    PC->GetHitResultUnderCursor(ECC_GameTraceChannel1, true, ResultHit);
    auto FindRotatorResult = UKismetMathLibrary::FindLookAtRotation(GetActorLocation(), ResultHit.Location);
    SetActorRotation(FRotator(0.0f, FindRotatorResult.Yaw, FindRotatorResult.Roll));     
  }
}

```

and press “W” model starts moving to place where mouse is pointing.

Which is correct way to make character movement and view independent of each other?
