feat: Add 3D wall rendering component with textures and decals, and a trigger connector for managing simulation events.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user