Skip to content

Commit

Permalink
Fix movement smoothening
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Jul 21, 2024
1 parent 49f78e1 commit ef11754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Next
- Fixed movement smoothening

## 0.0.17_2
*2024-07-21 22:28*
- Changed rendering to make closer texels overwrite farther texels
Expand Down
2 changes: 1 addition & 1 deletion src/com/nixinova/input/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void tick(InputHandler input) {
}

// differentials for controls
PxCoord newPos2 = new PxCoord();
PxCoord newPos2 = this.pos2.toPx();
newPos2.x += (xMove * Math.cos(this.rot) + zMove * Math.sin(this.rot)) * Options.walkSpeed;
newPos2.y += yMove;
newPos2.z += (zMove * Math.cos(this.rot) - xMove * Math.sin(this.rot)) * Options.walkSpeed;
Expand Down

0 comments on commit ef11754

Please sign in to comment.