Skip to content

Commit

Permalink
Fix hitobject Y position
Browse files Browse the repository at this point in the history
  • Loading branch information
mymatsubara committed Apr 17, 2023
1 parent cb091fb commit 080bae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ pub fn update_osu(

let center = DVec3::new(
screen_size.0 as f64 - next_hitobject.x() as f64 * osu.scale(),
next_hitobject.y() as f64 * osu.scale() + margin_size.1 as f64,
(screen_size.1 as f64 - next_hitobject.y() as f64 * osu.scale())
+ margin_size.1 as f64,
osu.screen_z + z_offset as f64,
);

Expand Down

0 comments on commit 080bae0

Please sign in to comment.