mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 06:06:11 +01:00
feat: turret rotation
This commit is contained in:
1 parent
c9d5b46ae8
commit
73f7e84192
3 files changed
+163
-32
No files matched your search
@@ -14,8 +14,7 @@ export function TankAlignment({ model }: TankAlignmentProps) {
|
||||
const diameter = Math.max(box.max.x - box.min.x, box.max.z - box.min.z);
|
||||
const radius = diameter / 2;
|
||||
|
||||
model.current?.position.set(0, -(box.min.y + box.max.y) / 2, 0);
|
||||
// camera.position.set(radius * -0.25, radius * 0.1, radius * -1.5);
|
||||
camera.position.set(0, (box.min.y + box.max.y) / 2, -10);
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user