currently optimal position for all blue orbs.

This commit is contained in:
ad044 2020-10-02 17:21:21 +04:00
parent 2a1424f4ea
commit eeec85260b
4 changed files with 66 additions and 74 deletions

View file

@ -127,7 +127,7 @@ const Lain = () => {
<Suspense fallback={<>loading...</>}> <Suspense fallback={<>loading...</>}>
<a.sprite <a.sprite
position-y={lainPosYState.lainPosY} position-y={lainPosYState.lainPosY}
scale={[4.8, 4.8, 4.8]} scale={[4.5, 4.5, 4.5]}
> >
{lainMoving ? lainMoveState : <LainStanding />} {lainMoving ? lainMoveState : <LainStanding />}
</a.sprite> </a.sprite>

View file

@ -11,8 +11,8 @@ type LevelProps = {
const Level = (props: LevelProps) => { const Level = (props: LevelProps) => {
return ( return (
<group position={[0, props.levelPosY, 0]}> <group position={[0, props.levelPosY, 0]}>
<PurpleRing purpleRingPosY={0.43} /> <PurpleRing purpleRingPosY={0.44} />
<GrayRing grayRingPosY={-0.28} /> <GrayRing grayRingPosY={-0.29} />
<CyanCrystal crystalRingPosY={-0.45} /> <CyanCrystal crystalRingPosY={-0.45} />
</group> </group>
); );

View file

@ -1,10 +1,5 @@
import { atom } from "recoil"; import { atom } from "recoil";
// export const camPosYAtom = atom({
// key: "camPosYAtom",
// default: 0,
// });
//
export const camRotYAtom = atom({ export const camRotYAtom = atom({
key: "camRotYAtom", key: "camRotYAtom",
default: 0, default: 0,
@ -15,7 +10,3 @@ export const camPosYAtom = atom({
default: 0, default: 0,
}); });
// export const camRotYAtom = atom({
// key: "camRotYAtom",
// default: 0,
// });

View file

@ -1,105 +1,106 @@
{ {
"05": { "21": {
"position": [0.4, -0.35, 1.1], "position": [0.45, 0.33, 1.1],
"rotation": [0, 0.35, 0] "rotation": [0, 0.35, 0]
}, },
"13": { "13": {
"position": [0.4, 0, 1.1], "position": [0.45, 0, 1.1],
"rotation": [0, 0.35, 0] "rotation": [0, 0.35, 0]
}, },
"21": { "05": {
"position": [0.4, 0.35, 1.1], "position": [0.45, -0.33, 1.1],
"rotation": [0, 0.35, 0] "rotation": [0, 0.35, 0]
}, },
"14": {
"position": [-0.49, 0, 1.12],
"rotation": [0, -0.37, 0]
},
"22": { "22": {
"position": [-0.49, 0.33, 1.12], "position": [-0.49, 0.33, 1.12],
"rotation": [0, -0.37, 0] "rotation": [0, -0.37, 0]
}, },
"14": {
"position": [-0.49, 0, 1.12],
"rotation": [0, -0.37, 0]
},
"06": { "06": {
"position": [-0.49, -0.33, 1.12], "position": [-0.49, -0.33, 1.12],
"rotation": [0, -0.37, 0] "rotation": [0, -0.37, 0]
}, },
"07": { "23": {
"position": [-1.15, -0.3, 0.72], "position": [-1.15, 0.33, 0.45],
"rotation": [0, -1, 0] "rotation": [0, -1.17, 0]
}, },
"15": { "15": {
"position": [-1.15, 0, 0.72], "position": [-1.15, 0, 0.45],
"rotation": [0, -1, 0] "rotation": [0, -1.17, 0]
}, },
"23": { "07": {
"position": [-1.15, 0.3, 0.72], "position": [-1.15, -0.33, 0.45],
"rotation": [0, -1, 0] "rotation": [0, -1.17, 0]
}, },
"08": {
"position": [-1.3, 0, 0.3],
"rotation": [0, -1.4, 0]
},
"16": { "16": {
"position": [-1.3, 0.3, 0.3], "position": [-1.145, 0.33, -0.5],
"rotation": [0, -1.4, 0] "rotation": [0, -1.95, 0]
},
"08": {
"position": [-1.145, 0, -0.5],
"rotation": [0, -1.95, 0]
}, },
"00": { "00": {
"position": [-1.3, -0.25, 0.3], "position": [-1.145, -0.33, -0.5],
"rotation": [0, -1.4, 0] "rotation": [0, -1.95, 0]
},
"18": {
"position": [-0.85, 0.3, -1.05],
"rotation": [0, -2.45, 0]
},
"10": {
"position": [-0.85, 0, -1.05],
"rotation": [0, -2.45, 0]
},
"02": {
"position": [-0.85, -0.25, -1.05],
"rotation": [0, -2.45, 0]
}, },
"17": { "17": {
"position": [-1.25, 0.3, -0.5], "position": [-0.5, 0.33, -1.15],
"rotation": [0, -1.85, 0] "rotation": [0, -2.75, 0]
}, },
"09": { "09": {
"position": [-1.25, 0, -0.5], "position": [-0.5, 0, -1.15],
"rotation": [0, -1.85, 0] "rotation": [0, -2.75, 0]
}, },
"01": { "01": {
"position": [-1.25, -0.25, -0.5], "position": [-0.5, -0.33, -1.15],
"rotation": [0, -1.85, 0] "rotation": [0, -2.75, 0]
},
"18": {
"position": [0.45, 0.33, -1.15],
"rotation": [0, -3.55, 0]
},
"10": {
"position": [0.45, 0, -1.15],
"rotation": [0, -3.55, 0]
},
"02": {
"position": [0.45, -0.33, -1.15],
"rotation": [0, -3.55, 0]
},
"19": {
"position": [1.15, 0.33, -0.45],
"rotation": [0, -4.35, 0]
},
"11": {
"position": [1.15, 0, -0.45],
"rotation": [0, -4.35, 0]
},
"03": {
"position": [1.15, -0.33, -0.45],
"rotation": [0, -4.35, 0]
}, },
"20": { "20": {
"position": [1, 0.3, 0.9], "position": [1.15, 0.33, 0.45],
"rotation": [0, 0.69, 0] "rotation": [0, 1.2, 0]
}, },
"12": { "12": {
"position": [1, 0, 0.9], "position": [1.15, 0, 0.45],
"rotation": [0, 0.69, 0] "rotation": [0, 1.2, 0]
}, },
"04": { "04": {
"position": [1, -0.25, 0.9], "position": [1.15, -0.33, 0.45],
"rotation": [0, 0.69, 0] "rotation": [0, 1.2, 0]
},
"03": {
"position": [-0.15, -0.25, -1.3],
"rotation": [0, -2.45, 0]
},
"11": {
"position": [-0.15, 0, -1.3],
"rotation": [0, -2.45, 0]
},
"19": {
"position": [-0.15, 0.3, -1.3],
"rotation": [0, -2.45, 0]
}, },
"?": { "?": {