Skip to content

Commit

Permalink
fixed robots label position.
Browse files Browse the repository at this point in the history
Signed-off-by: yutaroha <[email protected]>
  • Loading branch information
yutaroha committed Nov 27, 2024
1 parent 4c56455 commit 447fe91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ export const RobotThreeMaker = ({
</mesh>
)}
{robotLabel && fontPath && fontPath.length > 0 ? (
<Text color="black" font={fontPath} fontSize={0.5} position={[0, 0, 1]}>
<Text color="black" font={fontPath} fontSize={0.5} position={position}>
{robot.name}
</Text>
) : robotLabel ? (
<TextThreeRendering position={[0, 0, 1]} text={robot.name} />
<TextThreeRendering position={[position.x, position.y, 1]} text={robot.name} />
) : null}
{imageUrl ? (
<RobotImageMaker
Expand Down

0 comments on commit 447fe91

Please sign in to comment.