feat: track directions

This commit is contained in:
TrèsAbhi committed 2024-02-10 00:08:42 -06:00
1 parent 7877eaa89b
commit 4ea8615fb5
1 file changed
+1 -1
@@ -158,7 +158,7 @@ export const TankModel = memo(() => {
const material = mesh.material as MeshStandardMaterial; const material = mesh.material as MeshStandardMaterial;
const offset = new Vector2( const offset = new Vector2(
0, 0,
event.movementY * (6 / canvas.height) + -event.movementY * (6 / canvas.height) -
event.movementX * (6 / canvas.width), event.movementX * (6 / canvas.width),
); );