CG-Project2
|
This Component stores all the mesh data regarding basic physics like velocity, force, acceleration. More...
#include <Component.hpp>
Public Member Functions | |
PhysicComponent () | |
Instances basic Component to query the ECS. |
Public Attributes | |
glm::vec3 | velocity {} |
mesh velocity | |
glm::vec3 | a {} |
mesh acceleration | |
glm::vec3 | force {} |
mesh force | |
float | mass = 1 |
mesh mass | |
float | restitution = 1 |
mesh restitution factor |
This Component stores all the mesh data regarding basic physics like velocity, force, acceleration.
All the meshes with this Component must be added to a PhysicWorld to simulate the physics.