diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 20:25:13 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 20:25:13 +0100 |
commit | 8b32dbc33c434f84b4aab98819147c3b8416ff69 (patch) | |
tree | ce9c7e3c880338efed3c199b5acf82a0c2a77366 /game/player/PlayerBulletScript.cpp | |
parent | 4710a16c01c83633a9afab4bf0b78d2640fe2b08 (diff) | |
parent | 2ad15f3efab481659543a1c03cd70a36fd297538 (diff) |
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/player/PlayerBulletScript.cpp')
-rw-r--r-- | game/player/PlayerBulletScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerBulletScript.cpp b/game/player/PlayerBulletScript.cpp index a76b7eb..a823375 100644 --- a/game/player/PlayerBulletScript.cpp +++ b/game/player/PlayerBulletScript.cpp @@ -17,7 +17,7 @@ void PlayerBulletScript::fixed_update(crepe::duration_t dt) { Camera & camera = this->get_components_by_name<Camera>("camera").front(); Transform & cam_transform = this->get_components_by_name<Transform>("camera").front(); Rigidbody & bullet_body = this->get_component<Rigidbody>(); - transform.rotation += bullet_body.data.angular_velocity; + transform.rotation += bullet_body.data.angular_velocity * dt.count(); transform.position += bullet_body.data.linear_velocity * dt.count(); vec2 half_screen = camera.viewport_size / 2; float despawn_location = cam_transform.position.x + half_screen.x + 50; |