better player indicator
better initial editor camera location
This commit is contained in:
@@ -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}
|
||||
>
|
||||
<boxGeometry args={[0.8, 0.8, 0.8]} />
|
||||
<meshStandardMaterial color="yellow" />
|
||||
</mesh >
|
||||
{/* <mesh>
|
||||
<boxGeometry args={[0.8, 0.8, 0.8]} />
|
||||
<meshStandardMaterial color="yellow" />
|
||||
</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>
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user