From e745580e571725cef4f8e22302500ee521237786 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 22 Jan 2025 01:13:48 +0500 Subject: fix: start position was set wrong --- .../java/kz/ilotterytea/frogartha/entities/PlayerEntity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core') 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; } } -- cgit v1.2.3