WorldmapConstants.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #pragma once
  16. namespace VGears {
  17. /// Rotation speed of the camera with L1 and R1, in radians per second.
  18. static const float CAMERA_ROTATION_SPEED = 1.5f;
  19. /// Snow map (WM3): the camera turns by itself after this many seconds (random in the range) ...
  20. static const float SNOW_CAMERA_MIN_WAIT = 6.0f;
  21. static const float SNOW_CAMERA_MAX_WAIT = 12.0f;
  22. /// ... by this many degrees (random in the range, to any side), at the speed of the manual rotation.
  23. static const float SNOW_CAMERA_MIN_DEGREES = 30.0f;
  24. static const float SNOW_CAMERA_MAX_DEGREES = 160.0f;
  25. /// Closest distance of the flying vehicles to the ground.
  26. static const float FLIGHT_MIN_CLEARANCE = 0.1f;
  27. /**
  28. * Highest terrain height the submarine can reach in WM2. The terrain above it is the top
  29. * layer. The submarine can move over all terrain types below this height.
  30. *
  31. * @todo The value was chosen from the height distribution of the WM2 triangles, and not
  32. * verified against the original game.
  33. */
  34. static const float UNDERWATER_MAX_HEIGHT = -0.3f;
  35. /**
  36. * Enables the submarine height limit of WM2.
  37. *
  38. * The submarine can't go over terrain that is closer than FLIGHT_MIN_CLEARANCE to the
  39. * ceiling.
  40. */
  41. static const bool UNDERWATER_HEIGHT_LIMIT_ENABLED = true;
  42. }