better player indicator
better initial editor camera location
This commit is contained in:
parent
858b47e71b
commit
487a894fe5
|
|
@ -5,12 +5,18 @@ export const CharacterView = observer(function ({ character }: { character: Char
|
||||||
|
|
||||||
const pos = character.transform.position;
|
const pos = character.transform.position;
|
||||||
|
|
||||||
return <mesh
|
return <group
|
||||||
position={[pos[0] + 0.5, pos[1] + 0.5, pos[2] + 0.5]}
|
position={[pos[0] + 0.5, pos[1] + 0.5, pos[2] + 0.5]}
|
||||||
rotation={character.transform.look}
|
rotation={character.transform.look}
|
||||||
>
|
>
|
||||||
|
{/* <mesh>
|
||||||
<boxGeometry args={[0.8, 0.8, 0.8]} />
|
<boxGeometry args={[0.8, 0.8, 0.8]} />
|
||||||
<meshStandardMaterial color="yellow" />
|
<meshStandardMaterial color="yellow" />
|
||||||
</mesh >
|
</mesh> */}
|
||||||
|
<mesh position={[0, 0, 0]} rotation={[-Math.PI / 2, -Math.PI / 4, 0]}>
|
||||||
|
<coneGeometry args={[0.55, 0.8, 4]} />
|
||||||
|
<meshStandardMaterial color="yellow" />
|
||||||
|
</mesh>
|
||||||
|
</group>
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,13 +66,13 @@ export class WorldState {
|
||||||
},
|
},
|
||||||
voxelTypes: DEFAULT_VOXEL_TYPES,
|
voxelTypes: DEFAULT_VOXEL_TYPES,
|
||||||
editorCamera: {
|
editorCamera: {
|
||||||
position: [0, 2, 10],
|
position: [-9, 11, 30],
|
||||||
look: [0, 0, 0],
|
look: [-0.52, -0.35, -0.2],
|
||||||
},
|
},
|
||||||
initialScene: {
|
initialScene: {
|
||||||
character: {
|
character: {
|
||||||
transform: {
|
transform: {
|
||||||
position: [0, 0, 20],
|
position: [0, 5, 20],
|
||||||
look: [0, 0, 0],
|
look: [0, 0, 0],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue