Gryazevichki
Wheeled vehicle simulation using Bevy engine with Rapier's joints
Install / Use
/learn @gavlig/GryazevichkiREADME
⚠️Legacy branch!⚠️
'master' branch is currently broken due to migration to newer rapier and bevy_rapier so unless you want to compare old and new versions this branch offers a better experience

Hello! This is a prototype of vehicle simulator based on Rapier and Bevy written on Rust. Inspired by Godot-6DOF-Vehicle-Demo.
Parameters

From Parameters window these can be adjusted:
- Size of front and rear wheels
- Every individual wheel's density and sizes
- Vehicle's body density and sizes
Motivation
It started as a learning project to check out the underlying tech. State of Rapier v0.12.0-alpha.0 is surprizingly robust, the goal was to get a somewhat working vehicle without any tweaks from game code over the results of simulation using just rigid bodies, joints and motors (just like in 6DOF-Vehicle-Demo).
Unlike Bullet (physics engine used in said demo), Rapier doesnt support 6 degrees of freedom joints yet, but with two chained revolute joints: one for wheel rotation(x-axis) and one for steering(y-axis), a stable and functional wheel was made! Making four of those and attaching them to a box scaled by z-axis made a nice wagon. Using motors for accelerating and steering was also quite intuitive, though I must admit that it took me some time to figure out all the axis and how to orient them in both frames of a joint.
Controls
W / S: gas / reverse
A / D: steer left / steer right
Mouse look: camera orbiting around vehicle
Esc: Toggle Show/Hide mouse cursor
Ctrl + Space: Toggle flying camera (wasd + space + shift)
Ctrl + Esc: Close app
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
