Class atlas::physics::jolt_context
ClassList > atlas > physics > jolt_context
This class is made to be 1 of three api wrappers for jolt. Jolt context is specifically for engine only use of the api. It wraps the inititialization, the physics step and the clean up. Allow use not to have to write batching algorithms for each time we want to change the settings of jolt physics. More...
#include <jolt_context.hpp>
Inherits the following classes: atlas::physics::physics_context
Public Attributes
Type | Name |
---|---|
ref< JPH::PhysicsSystem > | m_physics_system Gives access to the physics system. Is given to jolt_api as well. This is to allow us to give seperation of concerns. However, may change now do to Jolt conflict and unhandled dangling pointers withinjolt_api . |
Public Functions
Type | Name |
---|---|
jolt_context (const jolt_settings & p_settings) |
|
~jolt_context () override |
Public Functions inherited from atlas::physics::physics_context
See atlas::physics::physics_context
Type | Name |
---|---|
void | clean_bodies () |
void | contact_added_event () |
void | create_bodies () |
void | run_physics_step () |
virtual | ~physics_context () = default |
Detailed Description
Remark:
This is different that jolt_api, which is the user wrapper. It is meant to contain all the effects that can happen during runtime. Where most of the data can be called by the user. m_physics_system is the only link between the two classes. Both of which use it for different purposes. Jolt context to control the functionality of the entire systems and the Jolt Api for user based control of the system and bodies.
Remark:
The third api is collisions which has its own context for jolt.
Public Attributes Documentation
variable m_physics_system
Gives access to the physics system. Is given to jolt_api as well. This is to allow us to give seperation of concerns. However, may change now do to Jolt conflict and unhandled dangling pointers withinjolt_api .
ref<JPH::PhysicsSystem> atlas::physics::jolt_context::m_physics_system;
Public Functions Documentation
function jolt_context
atlas::physics::jolt_context::jolt_context (
const jolt_settings & p_settings
)
function ~jolt_context
atlas::physics::jolt_context::~jolt_context () override
The documentation for this class was generated from the following file TheAtlasEngine/atlas/physics/physics_3d/jolt/jolt_context.hpp