mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add groundMaterial
This commit is contained in:
parent
1d4fb9bc07
commit
01d46b2690
2 changed files with 16 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue