Urgent.News

What's breaking now, across thousands of outlets.

Tech

Wall-impact sparks: test the normal before tuning the glow

A laser impact needs two inputs from the game: a hit position and an outward surface normal. The particle effect should consume those inputs. It should not invent a collision result from a bright spot on a wall. This small Three.js demo uses a fixed planar wall facing positive Z and a synthetic hit at its center. It emits 32 unlit particles and pauses after 18 fixed simulation steps so the…

A laser impact requires two inputs: a hit position and an outward surface normal. A Three.js demo uses a fixed planar wall to emit 32 particles for testing. The particles move in the positive Z direction from an origin just in front of the wall. The source material provides details on emitter settings, particle lifetime, and velocity ranges.

Ensure the normal is correctly transformed from mesh-local to world space, as translating it like a position is a common mistake when dealing with nonuniform scale. Test the simple case before rotating the wall; the outward normal is [0,0,1] in this case. After the burst finishes, remove the effect or reuse it with an explicit ownership policy.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Connect Apple Health to opencode: Native MCP Setup

This walks through the exact config, the two values you type twice, and the tool-scoping glob that keeps 16 health tools out of your coding context until you actually ask for them.

  • Connect Apple Health to opencode using MCP setup
  • Health-export tool run with npx command
  • Local MCP bridge eliminates need for vendor account

Local Route Launcher: app-specific launch settings for macOS

I wanted a simpler way to launch a compatible ChatGPT installation with a local HTTP proxy while leaving my Mac’s system proxy and DNS settings alone.

  • Local Route Launcher simplifies ChatGPT launch with local HTTP proxy.
  • Free, MIT-licensed macOS app stores proxy host and port.
  • Supports Apple Silicon Macs with macOS 13+, Electron-based ChatGPT.

More from Thursday 15 October →