feat: Add 3D wall rendering component with textures and decals, and a trigger connector for managing simulation events.

This commit is contained in:
2025-12-29 17:15:58 +05:30
parent b4d5087298
commit f71068151d
2 changed files with 3 additions and 10 deletions

View File

@@ -94,9 +94,9 @@ function Wall({ wall }: { readonly wall: Wall }) {
if (!wallVisibility && wallType.type === "room") {
meshRef.current.getWorldDirection(v);
camera.getWorldDirection(u);
u.subVectors(camera.position, meshRef.current.position);
if (!u || !v) return;
nextVisible = 2 * v.dot(u) <= 0.1;
nextVisible = v.dot(u) >= 0;
}
if (prevVisibleRef.current !== nextVisible) {

View File

@@ -483,14 +483,7 @@ function TriggerConnector() {
}
};
const previewLine = currentLine
? {
start: currentLine.start,
mid: currentLine.mid,
end: currentLine.end,
color: helperLineColor,
}
: null;
const previewLine = currentLine ? { start: currentLine.start, mid: currentLine.mid, end: currentLine.end, color: helperLineColor } : null;
return (
<group name="simulationConnectionGroup" visible={!isPlaying}>