I made Soft Body Physics from Scratch
3-Second Blueprint (English)
- Deformable 2D soft bodies can be simulated via shape-matching around mean vertex position and angle, though undamped shapes spin.
- Point-in-polygon ray casting detects inter-body vertex penetration more simply than Separating Axis Theorem (SAT) on deforming meshes.
- Porting the Python prototype to Rust and the Bevy engine enabled stable 100-substep real-time simulation for playable soft-body Tetris.
RustBevy EnginePythonRay-Cast CollisionSoft-Body Simulation
3-Sekunden-Fazit (Deutsch)
- Verformbare 2D-Soft-Bodies lassen sich über mittlere Vertexposition und Winkel simulieren, rotieren ohne Dämpfung jedoch instabil.
- Raycasting prüft Vertex-Eindringung bei verformten Polygonen deutlich einfacher als das Separating Axis Theorem (SAT).
- Die Portierung von Python auf Rust mit der Bevy-Engine ermöglichte 100 Simulationsschritte in Echtzeit für Soft-Body-Tetris.
RustBevy EnginePythonRaycasting-KollisionSoft-Body-Simulation
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.