mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
fix: player flight linearDamping, add verticalDamping (bool)
This commit is contained in:
parent
3cafc39555
commit
f3201b7742
5 changed files with 31 additions and 29 deletions
|
|
@ -41,6 +41,7 @@ struct Hitbox {
|
|||
glm::vec3 halfsize;
|
||||
glm::vec3 velocity;
|
||||
float linearDamping;
|
||||
bool verticalDamping = false;
|
||||
bool grounded = false;
|
||||
|
||||
Hitbox(glm::vec3 position, glm::vec3 halfsize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue