TheAtlasEngine
 
Loading...
Searching...
No Matches
atlas::physics_body Struct Reference

physics body data-driven representative More...

#include <components.hpp>

Public Attributes

glm::vec3 linear_velocity = glm::vec3(0.0)
 
glm::vec3 angular_velocity = glm::vec3(0.0f)
 
glm::vec3 force = glm::vec3(0.0f)
 
glm::vec3 impulse = glm::vec3(0.0f)
 
glm::vec3 torque = glm::vec3(0.0f)
 
float mass_factor = 1.0f
 
glm::vec3 center_mass_position = glm::vec3(0.0f)
 
float linear_damping = 0.0f
 
float angular_damping = 0.0f
 
float gravity_factor = 1.0f
 
float friction = 0.8f
 
float restitution = 0.2f
 
uint8_t body_movement_type = body_type::fixed
 body_type::fixed means this physics body is static
 
uint8_t body_layer_type = body_layer::moving
 body_layer (object layers) refer to the rules of the collision system specified in JoltPhysics
 

Detailed Description

physics body data-driven representative

TODO: Add parameters for force, impulse, and torque


The documentation for this struct was generated from the following file: