mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
improve floor collision physics (add mass)
This commit is contained in:
parent
fc57e98a96
commit
3bcb7f7e70
2 changed files with 14 additions and 2 deletions
|
|
@ -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 {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue