mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: track directions
This commit is contained in:
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 offset = new Vector2(
|
||||
0,
|
||||
event.movementY * (6 / canvas.height) +
|
||||
-event.movementY * (6 / canvas.height) -
|
||||
event.movementX * (6 / canvas.width),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user