Struct atlas::physics::jolt_settings
ClassList > atlas > physics > jolt_settings
This includes global configs for each scene and how the physics engine will behave in a paticular scene. More...
#include <jolt_components.hpp>
Public Attributes
Type | Name |
---|---|
unsigned int | allocation_amount = 10 \* 1024 \* 1024 |
float | broadphase_scale = 1.0f |
uint32_t | collision_filter_layer_count = 32 |
uint32_t | default_collision_group = 0 |
uint32_t | default_filter_mask = 0xFFFFFFFF |
float | fixed_time_step = 1.0f / 60.0f |
bool | is_multithreaded = true |
uint32_t | max_barriers = physics\_threads \* 16 |
uint32_t | max_bodies = 16384 |
uint32_t | max_body_pairs = 32768 |
uint32_t | max_contact_constraints = 8192 |
uint32_t | max_jobs_power = 10 |
glm::vec3 | physics_scene_position = glm::vec3(0.0f, 0.0f, 0.0f) |
uint32_t | physics_threads = /* multi line expression */ |
uint32_t | position_iterations = 1 |
float | sleep_angular_velocity_threshold = 0.05f |
float | sleep_velocity_threshold = 0.05f |
thread_system | thread_type = Default |
bool | use_4_layer_broadphase = true |
bool | use_fixed_timestep = false |
uint32_t | velocity_iterations = 8 |
glm::vec3 | world_bounds_max = glm::vec3(500.0f, 500.0f, 500.0f) |
glm::vec3 | world_bounds_min = glm::vec3(-500.0f, -500.0f, -500.0f) |
Detailed Description
Remark:
world_bounds_min && world_bounds_max: These values are arbitrary until further investigation happens and are more of a reminder that floating point error exsists. True max values should be determined in the near future.
Public Attributes Documentation
variable allocation_amount
unsigned int atlas::physics::jolt_settings::allocation_amount;
variable broadphase_scale
float atlas::physics::jolt_settings::broadphase_scale;
variable collision_filter_layer_count
uint32_t atlas::physics::jolt_settings::collision_filter_layer_count;
variable default_collision_group
uint32_t atlas::physics::jolt_settings::default_collision_group;
variable default_filter_mask
uint32_t atlas::physics::jolt_settings::default_filter_mask;
variable fixed_time_step
float atlas::physics::jolt_settings::fixed_time_step;
variable is_multithreaded
bool atlas::physics::jolt_settings::is_multithreaded;
variable max_barriers
uint32_t atlas::physics::jolt_settings::max_barriers;
variable max_bodies
uint32_t atlas::physics::jolt_settings::max_bodies;
variable max_body_pairs
uint32_t atlas::physics::jolt_settings::max_body_pairs;
variable max_contact_constraints
uint32_t atlas::physics::jolt_settings::max_contact_constraints;
variable max_jobs_power
uint32_t atlas::physics::jolt_settings::max_jobs_power;
variable physics_scene_position
glm::vec3 atlas::physics::jolt_settings::physics_scene_position;
variable physics_threads
uint32_t atlas::physics::jolt_settings::physics_threads;
variable position_iterations
uint32_t atlas::physics::jolt_settings::position_iterations;
variable sleep_angular_velocity_threshold
float atlas::physics::jolt_settings::sleep_angular_velocity_threshold;
variable sleep_velocity_threshold
float atlas::physics::jolt_settings::sleep_velocity_threshold;
variable thread_type
thread_system atlas::physics::jolt_settings::thread_type;
variable use_4_layer_broadphase
bool atlas::physics::jolt_settings::use_4_layer_broadphase;
variable use_fixed_timestep
bool atlas::physics::jolt_settings::use_fixed_timestep;
variable velocity_iterations
uint32_t atlas::physics::jolt_settings::velocity_iterations;
variable world_bounds_max
glm::vec3 atlas::physics::jolt_settings::world_bounds_max;
variable world_bounds_min
glm::vec3 atlas::physics::jolt_settings::world_bounds_min;
The documentation for this class was generated from the following file TheAtlasEngine/atlas/physics/jolt-cpp/jolt_components.hpp