Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1.  
  2. // Move Forward/Backward
  3. if ((GetAsyncKeyState('Y') & 0x8000) != 0)
  4. {
  5. if (ForwardVector.Z > 0)
  6. {
  7. ForwardVector_.X += ForwardVector.X * StepPos;
  8. ForwardVector_.Y += ForwardVector.Y * StepPos;
  9. CameraLocation.Z += ForwardVector.Z * -StepPos;
  10. }
  11. else
  12. {
  13. ForwardVector_.X += ForwardVector.X * StepPos;
  14. ForwardVector_.Y += ForwardVector.Y * -StepPos;
  15. CameraLocation.Z += ForwardVector.Z * -StepPos;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement