add groundMaterial

This commit is contained in:
MihailRis 2026-03-05 20:34:35 +03:00
parent 1d4fb9bc07
commit 01d46b2690
2 changed files with 16 additions and 9 deletions

View file

@ -64,11 +64,13 @@ struct Hitbox {
float gravityScale = 1.0f;
bool crouching = false;
float stepHeight = 0.5f;
std::string material;
glm::vec3 groundVelocity {};
std::string groundMaterial;
// garbage tbh
glm::vec3 prevPosition {};
int substeps = 1;
float delta = 0.0f;
static inline constexpr float TELEPORT_THRESOLD_SQR = 0.5f;