CG-Project2
Loading...
Searching...
No Matches
PhysicComponent Class Reference

This Component stores all the mesh data regarding basic physics like velocity, force, acceleration. More...

#include <Component.hpp>

Inheritance diagram for PhysicComponent:
Collaboration diagram for PhysicComponent:

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

Detailed Description

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.

See also
PhysicWorld

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