| 287 | } |
| 288 | |
| 289 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected