This commit is contained in:
MihailRis 2026-03-22 22:32:02 +03:00
parent 1d2c8cf4b6
commit 3ab5095583
2 changed files with 5 additions and 9 deletions

View file

@ -67,10 +67,7 @@ struct Hitbox {
float elasticity = 0.0f;
std::string material;
std::string groundMaterial;
// FIXME: only one must survive
glm::vec3 groundVelocity {};
glm::vec3 actualGroundVelocity {};
glm::vec3 prevPosition {};
glm::vec3 prevVelocity {};
@ -98,6 +95,6 @@ struct Hitbox {
}
glm::vec3 getSurfaceVelocity() const {
return velocity - actualGroundVelocity;
return velocity - groundVelocity;
}
};