MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseMenuSystem / MoveRight

Method MoveRight

Source/MenuSystem/MenuSystemCharacter.cpp:289–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void AMenuSystemCharacter::MoveRight(float Value)
290{
291 if ( (Controller != nullptr) && (Value != 0.0f) )
292 {
293 // find out which way is right
294 const FRotator Rotation = Controller->GetControlRotation();
295 const FRotator YawRotation(0, Rotation.Yaw, 0);
296
297 // get right vector
298 const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::Y);
299 // add movement in that direction
300 AddMovementInput(Direction, Value);
301 }
302}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected