# No suitable user-defined conversion from "FRotationMatrix" to "FVector"

**URL:** <https://forums.unrealengine.com/t/no-suitable-user-defined-conversion-from-frotationmatrix-to-fvector/488234>\
**Category:** Character & Animation\
**Tags:** rotation, Input, fvector, unreal-engine, question\
**Created:** [August 31, 2021, 9:48am UTC](https://forums.unrealengine.com/t/no-suitable-user-defined-conversion-from-frotationmatrix-to-fvector/488234 "2021-08-31T09:48:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenzDelcol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lorenzdelcol/32/478484_2.png) [@LorenzDelcol](https://forums.unrealengine.com/u/LorenzDelcol)\
**Post date:** [August 31, 2021, 9:48am UTC](https://forums.unrealengine.com/t/no-suitable-user-defined-conversion-from-frotationmatrix-to-fvector/488234/1 "2021-08-31T09:48:14Z")

</div>

void ABase\_Character::MoveForward(float Axis)  
{  
FRotator Rotation = Controller-\>GetControlRotation();  
FRotator YawRotation(0.0f, Rotation.Yaw, 0.0f);

```
	FVector Direction = FRotationMatrix(YawRotation).GetUnitAxes(EAxis::X);
	AddMovementInput(Direction, Axis);
}

```

Hi,

I’m a skilled artist that recently started learning a bit of coding for Unreal, I seem to have hit a snag where the conversion from FRotationMatrix to FVector gives 2 overloads and an error but I don’t know why. Please help!

---

<div class="post-metadata">

**Author:** ![LorenzDelcol](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lorenzdelcol/32/478484_2.png) [@LorenzDelcol](https://forums.unrealengine.com/u/LorenzDelcol)\
**Post date:** [August 31, 2021, 10:43am UTC](https://forums.unrealengine.com/t/no-suitable-user-defined-conversion-from-frotationmatrix-to-fvector/488234/2 "2021-08-31T10:43:24Z")

</div>

Never mind! It was something stupid. I wrote GetUnitAxes but it had to be GetUnitAxis.

---

<div class="post-metadata">

**Author:** ![jjacques](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jjacques/32/682933_2.png) [@jjacques](https://forums.unrealengine.com/u/jjacques)\
**Post date:** [February 12, 2022, 2:01pm UTC](https://forums.unrealengine.com/t/no-suitable-user-defined-conversion-from-frotationmatrix-to-fvector/488234/3 "2022-02-12T14:01:39Z")

</div>

Thanks for getting back and posting your findings. I was in the same situation
