diff --git a/src/GameBall/logic/obstacles/block.cpp b/src/GameBall/logic/obstacles/block.cpp index 267d034..19c826f 100644 --- a/src/GameBall/logic/obstacles/block.cpp +++ b/src/GameBall/logic/obstacles/block.cpp @@ -77,7 +77,7 @@ void Block::UpdateTick() { auto &cube = physics_world->GetCube(cude_id_); position_ = cube.position; if (cube.position != glm::vec3{0.0f, -10.0f, 0.0f}) { - cube.velocity = glm::vec3{0, 0.6*cos(timer_/100), 0}; + cube.velocity = glm::vec3{0, 0.6*cos(float(timer_)/100), 0}; } velocity_ = cube.velocity; orientation_ = cube.orientation;