2
0

jolt_project_settings.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**************************************************************************/
  2. /* jolt_project_settings.h */
  3. /**************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /**************************************************************************/
  8. /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
  9. /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /**************************************************************************/
  30. #ifndef JOLT_PROJECT_SETTINGS_H
  31. #define JOLT_PROJECT_SETTINGS_H
  32. #include <stdint.h>
  33. class JoltProjectSettings {
  34. public:
  35. static void register_settings();
  36. static int get_simulation_velocity_steps();
  37. static int get_simulation_position_steps();
  38. static bool use_enhanced_internal_edge_removal_for_bodies();
  39. static bool areas_detect_static_bodies();
  40. static bool should_generate_all_kinematic_contacts();
  41. static float get_penetration_slop();
  42. static float get_speculative_contact_distance();
  43. static float get_baumgarte_stabilization_factor();
  44. static float get_soft_body_point_radius();
  45. static float get_bounce_velocity_threshold();
  46. static bool is_sleep_allowed();
  47. static float get_sleep_velocity_threshold();
  48. static float get_sleep_time_threshold();
  49. static float get_ccd_movement_threshold();
  50. static float get_ccd_max_penetration();
  51. static bool is_body_pair_contact_cache_enabled();
  52. static float get_body_pair_cache_distance_sq();
  53. static float get_body_pair_cache_angle_cos_div2();
  54. static bool use_enhanced_internal_edge_removal_for_queries();
  55. static bool enable_ray_cast_face_index();
  56. static bool use_enhanced_internal_edge_removal_for_motion_queries();
  57. static int get_motion_query_recovery_iterations();
  58. static float get_motion_query_recovery_amount();
  59. static float get_collision_margin_fraction();
  60. static float get_active_edge_threshold();
  61. static bool use_joint_world_node_a();
  62. static int get_temp_memory_mib();
  63. static int64_t get_temp_memory_b();
  64. static float get_world_boundary_shape_size();
  65. static float get_max_linear_velocity();
  66. static float get_max_angular_velocity();
  67. static int get_max_bodies();
  68. static int get_max_pairs();
  69. static int get_max_contact_constraints();
  70. };
  71. #endif // JOLT_PROJECT_SETTINGS_H