From ef14ea28bc0e55ae0fba4ff2478a83681d8600eb Mon Sep 17 00:00:00 2001 From: ydcjeff Date: Thu, 14 Dec 2023 17:25:12 +0800 Subject: [PATCH] chore: format --- src/objects/space_entity.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/objects/space_entity.ts b/src/objects/space_entity.ts index 9ea91bd..5f3fda6 100644 --- a/src/objects/space_entity.ts +++ b/src/objects/space_entity.ts @@ -94,8 +94,7 @@ export abstract class SpaceEntity { delta.x = delta.x * Math.cos(theta) * (direction.x > 0 ? 1 : -1); delta.z = delta.x * Math.sin(theta); this.#position.add(Vector3.multiply(delta, direction)); - } - else if (direction === 'z') { + } else if (direction === 'z') { delta.x = delta.z * Math.sin(theta); delta.z = -delta.z * Math.cos(theta); this.#position.add(Vector3.multiply(delta, this.#direction));