Bugfix Set Mouse Input to Only Poll Yaw Movement
This commit is contained in:
parent
0a7025b684
commit
9e451d4539
BIN
Content/Blueprints/Combat_UI/CombatCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Combat_UI/CombatCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
@ -29,12 +29,12 @@ void ATempCharacter::BeginPlay()
|
|||||||
//Binds the input we made in the setup player component to the forward vector
|
//Binds the input we made in the setup player component to the forward vector
|
||||||
void ATempCharacter::ForwardInput(float Axis)
|
void ATempCharacter::ForwardInput(float Axis)
|
||||||
{
|
{
|
||||||
AddMovementInput(GetActorForwardVector() * Axis);
|
AddMovementInput(UKismetMathLibrary::GetForwardVector(FRotator(0, GetControlRotation().Yaw, 0)) * Axis);
|
||||||
}
|
}
|
||||||
//Binds the input we made in the setup player component to the right vector
|
//Binds the input we made in the setup player component to the right vector
|
||||||
void ATempCharacter::RightMoveInput(float Axis)
|
void ATempCharacter::RightMoveInput(float Axis)
|
||||||
{
|
{
|
||||||
AddMovementInput(GetActorRightVector() * Axis);
|
AddMovementInput(UKismetMathLibrary::GetRightVector(FRotator(0, GetControlRotation().Yaw, 0)) * Axis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user