fix: ricochet penetration as a sphere

This commit is contained in:
TrèsAbhi committed 2024-02-22 17:57:11 -06:00
1 parent f2331261cf
commit 62cb2c7217
1 file changed
+1 -1
+1 -1
View File
@@ -212,7 +212,7 @@ export function ShotDisplay() {
{shot.ricochet && ( {shot.ricochet && (
<mesh ref={ricochetCircle} position={[0, 0, secondLineLength]}> <mesh ref={ricochetCircle} position={[0, 0, secondLineLength]}>
<torusGeometry args={[0.05, 0.0125, 4, 16]} /> <icosahedronGeometry args={[0.05, 1]} />
<meshBasicMaterial <meshBasicMaterial
color={shot.ricochet.penetration ? 'green' : 'red'} color={shot.ricochet.penetration ? 'green' : 'red'}
depthTest={false} depthTest={false}