entity.get_rot, .set_rot

This commit is contained in:
MihailRis
2024-06-27 05:23:44 +03:00
parent 20ab48ecab
commit f70e923c7c
4 changed files with 20 additions and 3 deletions
+2 -2
View File
@@ -46,9 +46,9 @@ void Entities::updatePhysics(float delta){
1.0f,
true
);
hitbox.linear_damping = hitbox.grounded * 5;
hitbox.linear_damping = hitbox.grounded * 12;
transform.pos = hitbox.position;
transform.rot = glm::rotate(glm::mat4(transform.rot), delta, glm::vec3(0, 1, 0));
//transform.rot = glm::rotate(glm::mat4(transform.rot), delta, glm::vec3(0, 1, 0));
if (hitbox.grounded) {
//hitbox.velocity.y = 10;
}