Skip to content

Commit

Permalink
Fix oddly failing robot label and use same as other labels (#812)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth authored Oct 20, 2023
1 parent f722d64 commit 59065b1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Circle, Line, Text } from '@react-three/drei';
import { ThreeEvent } from '@react-three/fiber';
import React from 'react';
import { Euler, Vector3 } from 'three';
import { TextThreeRendering } from './text-maker';

export interface RobotData {
fleet: string;
Expand Down Expand Up @@ -69,9 +70,7 @@ export const RobotThreeMaker = ({
}: RobotThreeMakerProps): JSX.Element => {
return (
<>
<Text color="black" fontSize={0.5} position={[position.x, position.y, position.z + 1]}>
{robot.name}
</Text>
<TextThreeRendering position={[position.x, position.y, position.z + 1]} text={robot.name} />
<CircleShape
position={position}
rotation={rotation}
Expand Down

0 comments on commit 59065b1

Please sign in to comment.