Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanebert committed Mar 9, 2024
1 parent 884fafe commit ccbdc7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 0 additions & 5 deletions examples/fps/tmp.sh

This file was deleted.

7 changes: 4 additions & 3 deletions src/controls/FPSControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { Matrix3 } from "../math/Matrix3";
import { Vector3 } from "../math/Vector3";

class FPSControls {
moveSpeed: number = 2.5;
lookSpeed: number = 1.0;
moveSpeed: number = 2.0;
lookSpeed: number = 0.7;
dampening: number = 0.5;
update: () => void;
dispose: () => void;

Expand Down Expand Up @@ -80,7 +81,7 @@ class FPSControls {
}

targetPosition = targetPosition.add(move.multiply(this.moveSpeed * 0.01));
camera.position = camera.position.add(targetPosition.subtract(camera.position).multiply(0.1));
camera.position = camera.position.add(targetPosition.subtract(camera.position).multiply(this.dampening));

camera.rotation = Quaternion.FromEuler(new Vector3(pitch, yaw, 0));
};
Expand Down

0 comments on commit ccbdc7a

Please sign in to comment.