Skip to content

Struct atlas::physics::jolt_config

ClassList > atlas > physics > jolt_config

Used to keep global data for player access and use. Tells how physics bodies should act within a given scene by default.

  • #include <jolt_components.hpp>

Public Attributes

Type Name
float contact_bias_factor = 0.2f
bool enable_collision_callbacks = true
bool enable_constraints = true
combine_friction friction_type = combine\_friction::FrictionDefualt
glm::vec3 gravity = glm::vec3(0.0f, -9.80665f, 0.0f)
float restitution_threshold = 1.0f
combine_restitution restitution_type = /* multi line expression */
float time_before_sleep = 5.0f
In seconds.
float world_unit_scale = 1.0f

Public Attributes Documentation

variable contact_bias_factor

float atlas::physics::jolt_config::contact_bias_factor;

variable enable_collision_callbacks

bool atlas::physics::jolt_config::enable_collision_callbacks;

variable enable_constraints

bool atlas::physics::jolt_config::enable_constraints;

variable friction_type

combine_friction atlas::physics::jolt_config::friction_type;

variable gravity

glm::vec3 atlas::physics::jolt_config::gravity;

variable restitution_threshold

float atlas::physics::jolt_config::restitution_threshold;

variable restitution_type

combine_restitution atlas::physics::jolt_config::restitution_type;

variable time_before_sleep

In seconds.

float atlas::physics::jolt_config::time_before_sleep;


variable world_unit_scale

float atlas::physics::jolt_config::world_unit_scale;


The documentation for this class was generated from the following file TheAtlasEngine/atlas/physics/jolt-cpp/jolt_components.hpp