mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: yaw and pitch
This commit is contained in:
1 parent
369ba08780
commit
47f5f86da1
2 files changed
+3
-3
No files matched your search
@@ -56,7 +56,7 @@ export function RotationInputs({ duel: { protagonist } }: RotationInputsProps) {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextField.Slot>Turret</TextField.Slot>
|
<TextField.Slot>Yaw</TextField.Slot>
|
||||||
<TextField.Input
|
<TextField.Input
|
||||||
defaultValue={Math.round(physical.yaw * (180 / Math.PI))}
|
defaultValue={Math.round(physical.yaw * (180 / Math.PI))}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
@@ -92,7 +92,7 @@ export function RotationInputs({ duel: { protagonist } }: RotationInputsProps) {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextField.Slot>Gun</TextField.Slot>
|
<TextField.Slot>Pitch</TextField.Slot>
|
||||||
<TextField.Input
|
<TextField.Input
|
||||||
defaultValue={-Math.round(physical.pitch * (180 / Math.PI))}
|
defaultValue={-Math.round(physical.pitch * (180 / Math.PI))}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ export default function Page() {
|
|||||||
</DropdownMenu.Root>
|
</DropdownMenu.Root>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Card variant="ghost">
|
<Card>
|
||||||
<Suspense fallback={<Text>Loading...</Text>}>
|
<Suspense fallback={<Text>Loading...</Text>}>
|
||||||
<Options />
|
<Options />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|||||||
Reference in new issue
Block a user