Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
piellardj committed Nov 4, 2024
1 parent 6bf7d28 commit 628ddb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib/physics/voxelmap-collisions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class VoxelmapCollisions {

let currentState = entityCollider;
const output: EntityCollisionOutput = {
computationStatus: "ok",
computationStatus: 'ok',
position: new THREE.Vector3().copy(entityCollider.position),
velocity: new THREE.Vector3().copy(entityCollider.velocity),
isOnGround: false,
Expand All @@ -231,8 +231,8 @@ class VoxelmapCollisions {
velocity: localOutput.velocity,
};

if (localOutput.computationStatus === "partial") {
output.computationStatus = "partial";
if (localOutput.computationStatus === 'partial') {
output.computationStatus = 'partial';
}
output.position = localOutput.position;
output.velocity = localOutput.velocity;
Expand Down
4 changes: 2 additions & 2 deletions src/test/test-physics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class TestPhysics extends TestBase {

protected override update(): void {
for (const [keyCode, isPressed] of this.keyDown.entries()) {
if (isPressed && keyCode !== "Space") {
if (isPressed && keyCode !== 'Space') {
this.keysPressed.add(keyCode);
}
}
Expand Down Expand Up @@ -277,7 +277,7 @@ class TestPhysics extends TestBase {
isMoving = true;
directiond2d.x++;
}
if (this.keysPressed.has("Space")) {
if (this.keysPressed.has('Space')) {
this.player.velocity.y = 20;
}
this.keysPressed.clear();
Expand Down

0 comments on commit 628ddb5

Please sign in to comment.