Skip to content

Commit

Permalink
feat: aiming circle
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Dec 2, 2024
1 parent c039862 commit 7188014
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { I_HAT, J_HAT } from '@blitzkit/core';
import { Box } from '@radix-ui/themes';
import { Html } from '@react-three/drei';
import { useFrame, useLoader } from '@react-three/fiber';
import { clamp } from 'lodash-es';
import { useRef } from 'react';
Expand All @@ -14,6 +16,7 @@ import { degToRad } from 'three/src/math/MathUtils.js';
import { awaitableModelDefinitions } from '../../../../../../core/awaitables/modelDefinitions';
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
import { modelTransformEvent } from '../../../../../../core/blitzkit/modelTransform';
import { Var } from '../../../../../../core/radix/var';
import { Duel } from '../../../../../../stores/duel';
import { TankopediaEphemeral } from '../../../../../../stores/tankopediaEphemeral';
import { TankopediaPersistent } from '../../../../../../stores/tankopediaPersistent';
Expand Down Expand Up @@ -189,22 +192,25 @@ export function SceneProps() {
<arrowHelper ref={shellPathHelper} position={shellOrigin} />

<group ref={targetCircle}>
<mesh renderOrder={1}>
<sphereGeometry args={[0.1, 32, 32]} />
<mesh>
{/* <sphereGeometry args={[0.1, 32, 32]} />
<meshStandardMaterial
depthTest={false}
depthWrite={false}
color="red"
/>
</mesh>
/> */}

{/* <Html center occlude={false}>
<Html center occlude={false}>
<Box
width="10em"
height="10em"
style={{ backgroundColor: 'red' }}
style={{
borderRadius: '50%',
border: `0.25rem dotted ${Var('gray-12')}`,
}}
/>
</Html> */}
</Html>
</mesh>
</group>

<group ref={playground}>
Expand Down

0 comments on commit 7188014

Please sign in to comment.