Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Dec 14, 2023
1 parent 7c581ad commit ef14ea2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/objects/space_entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ef14ea2

Please sign in to comment.