Mass struct
#include <engine/physics/components/mass.hpp>
Component which defines the mass of a particle.
Directly setting density for a body is not supported. However, you can set mass based on density by considering mass = volume * density.
Public static variables
- static float INFINITE constexpr
- Represents infinite mass. A body with infinite mass does not move.
Public functions
- void setMass(float m)
- Sets the mass.