Skip to content

Commit

Permalink
Update block.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rita1218 authored Jan 18, 2024
1 parent 9ce3c3b commit f4a61df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GameBall/logic/obstacles/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4a61df

Please sign in to comment.