Magnetic Particle Field

Background particles dynamically attract toward cursor and components in a verlet physics R3F instance field.

Component Showcase

Magnetic Particle Field

Background particles dynamically attract toward cursor and components in a verlet physics R3F instance field.

Three.jsR3FPhysicsInstancedMesh

Interactive Playground

Adjust sliders and values to preview changes in real-time

particleCount

Number of active physics particles.

particleColor

Hex color of the physical particles.

particleSize

Geometric scale radius of octahedrons.

glowIntensity

Emissive physical light intensity.

bg

Backdrop space canvas color.

titleText

Optional alert box title.

eyebrowText

Optional subtitle text.

API Reference (Props)

Component properties and type specifications

PropTypeDefaultDescription
particleCountnumber500Number of active physics particles.
particleColorstring"#7fff5e"Hex color of the physical particles.
particleSizenumber0.08Geometric scale radius of octahedrons.
glowIntensitynumber1.5Emissive physical light intensity.
bgstring"#050505"Backdrop space canvas color.
titleTextstring""Optional alert box title.
eyebrowTextstring""Optional subtitle text.