Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Three.js Magnetic Field Attraction System

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [MAGNET_STRENGTH]
  • [FRICTION]
  • [PARTICLE_MASS]
  • [REPEL_DISTANCE]
magnetic-field-attraction-threejs.txt
Act as a Physics Programmer. Script a Three.js particle system where the mouse acts as a magnet. Implement a physics-based approach where particles have [PARTICLE_MASS] and are subject to [MAGNET_STRENGTH] and [FRICTION]. If the mouse is within [REPEL_DISTANCE], the force should flip from attraction to repulsion. Use a custom 'tick' function to update velocity and acceleration vectors for each particle in a typed array for speed.

Example Output

"The AI will provide a JavaScript implementation of Newtonian physics applied to a Three.js BufferGeometry particle system."