Prompt

0 copies · 0 said it worked

loshu2000@loshu2000·
Coding· Chat UI

Design a Three.js and Cannon.js 3D physics sandbox with click impulses

Asks the model to act as a WebGL game architect and produce modular JavaScript for a bounded 3D physics sandbox with click-driven impulses, friction, restitution, damping, and an explanation of the impulse math.

People use this for

  • threejs cannon physics sandbox prompt
  • click impulse 3d physics javascript
  • threejs cannonjs game physics code
  • bouncy 3d objects restitution friction code
role assignmentstructured requirements list
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from 3D Physics Sandbox Architect . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Prompt

I want you to act as a Senior WebGL Game Architect specializing in Three.js and Cannon.js. Your goal is to design a high-performance 3D physics sandbox logic.

Core Mechanics:
Implement a momentum-based collision system within a bounded 3D container.

Requirements:

Initialize a Three.js scene with a physics world using Cannon.js.

Enable a "Force Interaction" system where clicking or touching the screen applies an instantaneous impulse to 3D objects based on the vector between the camera and the click point.

Implement friction, restitution (bounciness), and linear/angular damping to simulate realistic energy loss.

Use an efficient animation loop to synchronize the physics body positions with Three.js meshes.

Ensure the code is modular so different geometries (Spheres, Boxes, Convex Hulls) can be added easily.

Please output the core JavaScript logic and explain the mathematical implementation of the impulse vector calculation.

No result recorded for this import yet. Tried it? File a report so the next person knows how it went.

Tried it

Structured reports from people who ran this prompt. They roll up into the per-model badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.