diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-22 01:13:48 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-22 01:13:48 +0500 |
| commit | e745580e571725cef4f8e22302500ee521237786 (patch) | |
| tree | 0477fb242fb0e48b9344bc36d09fb16f6bdab849 | |
| parent | b3739521c1dcaed9bd451e00067b7d304521745f (diff) | |
fix: start position was set wrong
| -rw-r--r-- | core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java b/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java index 518c7c6..a4f42de 100644 --- a/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java +++ b/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java @@ -13,8 +13,8 @@ import kz.ilotterytea.frogartha.domain.client.ChangedDirectionAction; import kz.ilotterytea.frogartha.domain.client.PlayerJumpAction; public class PlayerEntity extends RenderableEntity { - private final Vector3 startPosition, endPosition; private final Camera camera; + private Vector3 startPosition, endPosition; private float jumpStrength, elapsedTime; private boolean isJumpKeyPressed, isJumping, lockJump; @@ -108,11 +108,11 @@ public class PlayerEntity extends RenderableEntity { isJumping = jumping; } - public void setStartPosition(Vector3 startPosition) { - this.startPosition.set(startPosition.x, startPosition.y, startPosition.z); + public void setStartPosition(Vector3 value) { + this.startPosition = value; } - public void setEndPosition(Vector3 endPosition) { - this.endPosition.set(endPosition.x, endPosition.y, endPosition.z); + public void setEndPosition(Vector3 value) { + this.endPosition = value; } } |
