Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#WebGL

Advanced AI Prompt for Three.js Magnetic Field Attraction System

Customize the variables below to instantly engineer your prompt.

Required Variables

magnetic-field-attraction-threejs.txt
Act as a Physics Engine Programmer. Script a complex Three.js particle system where the user's projected 2D mouse coordinates act as an interactive 3D magnet. Implement a rigorous Newtonian physics approach where every particle possesses a unique [PARTICLE_MASS] and is continuously subject to [MAGNET_STRENGTH] acceleration and ambient [FRICTION]. Crucially, if the mouse approaches within a strict [REPEL_DISTANCE] radius, the force vector must instantaneously invert from attraction to violent repulsion. To guarantee 60fps, write a custom, heavily optimized 'tick' function that updates the velocity and acceleration vectors directly within the `Float32Array` attributes of a `BufferGeometry` instance rather than iterating over high-level objects.

Example Text Output

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

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Three.js Magnetic Field Attraction System" prompt used for?

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

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.