mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 12:09:50 +01: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 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),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user