🚀 Auto-deploy: BrainWind atualizado em 28/07/2026 11:42:11

This commit is contained in:
2026-07-28 11:42:11 +00:00
parent 6384220731
commit 2ea79c363f
+8 -8
View File
@@ -99,11 +99,11 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
const isAirtight = permeabilityCase !== 'four-equally-permeable'; const isAirtight = permeabilityCase !== 'four-equally-permeable';
if (isAirtight) { if (isAirtight) {
if (windAngle === 0 && px < -halfW + margin) { if (windAngle === 0 && px < -halfW + margin) {
deflectY = 0.1; // Sobe deflectY = p.baseSpeed * 1.5; // Sobe
deflectZ = pz > 0 ? 0.05 : -0.05; // Vai pros lados deflectZ = pz > 0 ? p.baseSpeed * 1.5 : -p.baseSpeed * 1.5; // Vai pros lados
} else if (windAngle === 90 && pz < -halfL + margin) { } else if (windAngle === 90 && pz < -halfL + margin) {
deflectY = 0.1; // Sobe deflectY = p.baseSpeed * 1.5; // Sobe
deflectX = px > 0 ? 0.05 : -0.05; // Vai pros lados deflectX = px > 0 ? p.baseSpeed * 1.5 : -p.baseSpeed * 1.5; // Vai pros lados
} }
} }
} else if (aboveRoof) { } else if (aboveRoof) {
@@ -165,10 +165,10 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
} else if (p.currentCpe < 0) { } else if (p.currentCpe < 0) {
// Sucção (Frio: Azul claro -> Azul escuro) // Sucção (Frio: Azul claro -> Azul escuro)
const intensity = Math.min(1, Math.abs(p.currentCpe)); const intensity = Math.min(1, Math.abs(p.currentCpe));
colorObj.set('#38bdf8').lerp(new THREE.Color('#1e3a8a'), intensity); colorObj.set('#7dd3fc').lerp(new THREE.Color('#1e40af'), intensity);
} else { } else {
// Neutro // Neutro
colorObj.set('#cbd5e1'); colorObj.set('#f1f5f9');
} }
meshRef.current!.setColorAt(i, colorObj); meshRef.current!.setColorAt(i, colorObj);
}); });
@@ -181,11 +181,11 @@ export function AirflowSystem({ windAngle, width, length, height, permeabilityCa
return ( return (
<instancedMesh ref={meshRef} args={[undefined, undefined, count]}> <instancedMesh ref={meshRef} args={[undefined, undefined, count]}>
<cylinderGeometry args={[0.04, 0.04, 1.5, 4]} /> <cylinderGeometry args={[0.015, 0.015, 1.5, 4]} />
<meshBasicMaterial <meshBasicMaterial
color="#ffffff" color="#ffffff"
transparent transparent
opacity={0.8} opacity={0.5}
blending={THREE.AdditiveBlending} blending={THREE.AdditiveBlending}
depthWrite={false} depthWrite={false}
/> />