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;
|
||||
|
||||
return <mesh
|
||||
return <group
|
||||
position={[pos[0] + 0.5, pos[1] + 0.5, pos[2] + 0.5]}
|
||||
rotation={character.transform.look}
|
||||
>
|
||||
{/* <mesh>
|
||||
<boxGeometry args={[0.8, 0.8, 0.8]} />
|
||||
<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,
|
||||
editorCamera: {
|
||||
position: [0, 2, 10],
|
||||
look: [0, 0, 0],
|
||||
position: [-9, 11, 30],
|
||||
look: [-0.52, -0.35, -0.2],
|
||||
},
|
||||
initialScene: {
|
||||
character: {
|
||||
transform: {
|
||||
position: [0, 0, 20],
|
||||
position: [0, 5, 20],
|
||||
look: [0, 0, 0],
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue