feat: trace lines

This commit is contained in:
TrèsAbhi committed 2024-02-02 17:48:18 -06:00
1 parent 3c63323814
commit 7c6c0a2b81
1 file changed
+18 -3
+18 -3
View File
@@ -81,7 +81,12 @@ export function ShotDisplay() {
</mesh> </mesh>
<group ref={entryWrapper}> <group ref={entryWrapper}>
<Html position={[0, 0, LENGTH]}> <Html
position={[0, 0, LENGTH]}
style={{
paddingLeft: 16,
}}
>
<Card <Card
style={{ style={{
width: 300, width: 300,
@@ -131,7 +136,11 @@ export function ShotDisplay() {
ref={entryLine} ref={entryLine}
> >
<cylinderGeometry args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]} /> <cylinderGeometry args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]} />
<meshBasicMaterial color="white" depthTest={false} /> <meshBasicMaterial color="#ffff80" depthTest={false} />
</mesh>
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
<cylinderGeometry args={[THICKNESS / 4, THICKNESS / 4, LENGTH, 8]} />
<meshBasicMaterial color="#ffffff" depthTest={false} />
</mesh> </mesh>
</group> </group>
@@ -145,7 +154,13 @@ export function ShotDisplay() {
<cylinderGeometry <cylinderGeometry
args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]} args={[THICKNESS / 2, THICKNESS / 2, LENGTH, 8]}
/> />
<meshBasicMaterial color="white" depthTest={false} /> <meshBasicMaterial color="#ff8080" depthTest={false} />
</mesh>
<mesh position={[0, 0, LENGTH / 2]} rotation={[Math.PI / 2, 0, 0]}>
<cylinderGeometry
args={[THICKNESS / 4, THICKNESS / 4, LENGTH, 8]}
/>
<meshBasicMaterial color="#ffffff" depthTest={false} />
</mesh> </mesh>
</group> </group>
)} )}