用C#和WASM实现的赛车物理引擎,在Three.js中渲染
GPT-6 Astra大约一天就用纯C#重写了赛车物理,视频里赛车在浏览器中通过Three.js行驶于网格赛道。
Claude Code + Three.js(仅代码)Wandy 2
创建精细的 3D 模型
单靠代码只能做出简单的形状。Wandy 2 能用一张照片生成带纹理的 3D 模型,直接用在同一个场景里。
Wandy3D 制作说明
作者没有公开提示词,因此我们写下了复现这个作品的方法。
Build a browser-based vehicle physics demo. Write the car physics engine in pure C# and compile it to WebAssembly as the backend, and render the result with Three.js. Load a racing track as collidable meshes: grey stylized road surfaces, banked curves, ramps, tubes, steel gantries and cranes against a harbor skyline with a blue sky. Show a small white car from a chase camera behind it. The physics must handle wheel contact, grip on different surface zones (coloured patches such as sand or boost areas should change behavior), jumps, wall collisions and recovery after landing. Drive the car with keyboard input and show smooth camera follow. Keep the visuals simple and flat-shaded so the focus stays on movement. Done means the car runs laps through the track in the browser with stable, believable handling and no falling through the geometry.
如何使用这条提示词
在具备.NET转WebAssembly工具链的编程智能体里,把构建说明交给GPT-6 Astra。
换成你自己的赛道网格,并调整抓地力、重力、路面类型和相机跟随。
跑几圈,检查穿模或异常落地,再让模型逐步修正物理。
原帖你是作者吗? 请联系我们修改或删除此页面
相似的提示词
浏览全部提示词
Claude Opus 5.5皮筋捆西瓜实验:可挤压、会爆开的 3D 浏览器小玩具
林悦己Cheer
Claude Opus 5.5带岩浆房的交互式 3D 火山剖面模拟
Konstantin Saifoulline
Claude Opus 5.5WebGPU 果冻压机玩具:水果软糖被液压机压碎
Vib3Coded
Claude Opus 5.5WebGPU果冻压机玩具:压碎软糖水果片并抓取投掷
Vib3Coded
Claude Opus 5.5滚动即可拆解的机械腕表:纯WebGPU单HTML文件
Paruchh
Claude Opus 5.5单文件交互式 SVG 地球图集:地球仪、六大考察与内部剖面
Gadgetify
