Skip to content

Class atlas::physics::jolt_api

ClassList > atlas > physics > jolt_api

Inherits the following classes: atlas::physics::physics_api

Public Functions

Type Name
jolt_api (const jolt_config & p_config, const ref< JPH::PhysicsSystem > & p_physics_system, const flecs::world & p_registery)
Construct a new jolt api object.

Public Functions inherited from atlas::physics::physics_api

See atlas::physics::physics_api

Type Name
void add_angular_velocity_by_body (const glm::vec3 & p_angular_velocity, const physics_body & p_body)
void add_force_by_body (const glm::vec3 & p_force, const physics_body & p_body)
Calls the corresponding virtuals.
void add_linear_velocity_by_body (const glm::vec3 & p_velocity, const physics_body & p_body)
FIXME: This one is really complicated because it needs to try over multiple frames. And locks are requried. So will be implemented later.
void set_angular_velocity_by_body (const glm::vec3 & p_angular_velocity, const physics_body & p_body)
void set_linear_velocity_by_body (const glm::vec3 & p_velocity, const physics_body & p_body)
void update_atlas_values ()
Allows for jolt values to sync with flecs.
void update_jolt_values ()
Allows for flecs values to sync with jolt without running into collisions.
virtual ~physics_api () = default

Public Functions Documentation

function jolt_api

Construct a new jolt api object.

atlas::physics::jolt_api::jolt_api (
    const jolt_config & p_config,
    const ref < JPH::PhysicsSystem > & p_physics_system,
    const flecs::world & p_registery
) 

Parameters:

  • p_config All system wide runtime configurations
  • p_physics_system Passed by the engine to allow interaction between the engine and users
  • p_registery The world this api is associated with. FIXME: This is a temperary solve until have a funciton like get_active_scenes(), added const


The documentation for this class was generated from the following file TheAtlasEngine/atlas/physics/physics_3d/jolt/jolt_api.hpp