-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted the way pieces are rotated when hovered.
Instead of changing the angular velocity to position the piece (which causes issues when flipping pieces at weird angles, due to the variable using euler angles), now the basis is set directly every physics frame using Basis.slerp(). Also fixed spamming the flip button causing the basis to become the wrong value. This was because the new hover_basis was based on the current transform, not the current hover_basis. This commit fixes #133.
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters