Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-moe-pupil committed Sep 26, 2024
1 parent 049cdd3 commit 725b621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gameClasses/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -1328,6 +1328,8 @@ var Item = TaroEntityPhysics.extend({
}
// for client-side, translate+rotate is handled in entitiesToRender.ts
self.translateTo(x, y);
//FIXME: there is one very secret operation, the rotate.z is a string before I(moethun) did any update
// but somehow toFixed(2) could let it stream the correct position rather than (0, 0, 0)
self.rotateTo(0, 0, parseFloat(rotate).toFixed(2));
// added check so braains works and ai item rotation also works
} else if (!taro.physics) {
Expand Down

0 comments on commit 725b621

Please sign in to comment.