◀ VibeCruiser

Inline4 Engine Sim

A free physics simulation — play it in your browser, no install. 纯前端四缸摩托车发动机物理剖面与声浪模拟器 (HTML5 Canvas + Web Audio API) | 支持平面/十字曲轴切换、四缸独立偏角 DIY、转速/缸径行程/提前角/断油与排气管声浪实时调节

by @xiaoA0v0 · xiaoA0v0/Inline4-Engine-Sim on GitHubLANG JavaScriptHOSTED ON XIAOA0V0.GITHUB.IOUPDATED 19 Nov 2026

Made this, @xiaoA0v0? See how many people played it → or use email

Controls: Arrow keys · Space

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

基于精确曲柄连杆运动学方程渲染 4 个剖面气缸、活塞环、活塞销、H 型连杆、配重曲轴与双顶置凸轮轴(DOHC)。 实时气门与燃烧可视化:进气蓝色混合气 → 压缩升温变色 → 按真实提前角触发的火花塞高压电弧 → 做功火焰膨胀 → 排气歧管受热变红与收油回火喷火! 无级时间倍率慢放(0.008x ~ 1.0x):拉低时间倍率即可像高速摄影机一样逐帧看清四冲程气门重叠与点火顺序。

平面曲轴 Flat-Plane 180° (1-3-4-2 / 1-2-4-3):经典日系直四哨音(ZX-4RR、CBR1000RR-R、CB400)。 雅马哈十字曲轴 Crossplane CP4 (270°-180°-90°-180°):真实复刻雅马哈 R1 的 90° 十字曲轴端面相序与不等间隔厚重声浪! 赛车 Big-Bang 双发同步点火 (360° 大间隔):感受强脉冲暴躁节奏。 四缸独立偏角滑块(0°~715°):自由 DIY 任意奇葩曲柄夹角,左侧剖面、曲轴端面相位雷达、720° 点火轴和排气管声浪实时联动改变!

调整缸径(Bore)、行程(Stroke)、压缩比、点火提前角与气门重叠角时,实时重绘整机 马力(HP)与扭矩(N·m)曲线 与峰值参数,并实时叠加 Web Audio 排气示波器波形。

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →