mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
cleanup
This commit is contained in:
parent
1d2c8cf4b6
commit
3ab5095583
2 changed files with 5 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue