improve floor collision physics (add mass)

This commit is contained in:
MihailRis 2026-03-14 17:46:23 +03:00
parent fc57e98a96
commit 3bcb7f7e70
2 changed files with 14 additions and 2 deletions

View file

@ -64,6 +64,8 @@ struct Hitbox {
float gravityScale = 1.0f;
bool crouching = false;
float stepHeight = 0.5f;
float mass = 1.0f;
float elasticity = 0.0f;
std::string material;
std::string groundMaterial;
glm::vec3 groundVelocity {};