Homebrew 4D Game Engine In Rust, inspired by Engine4D

Fix kinematic bodies being pushed by dynamic bodies

Kinematic bodies (like the player) were being treated as dynamic for collision resolution, causing the player to float on top of pushable objects like tesseracts instead of pushing them. The fix implements proper collision hierarchy: - Static bodies: never move (walls, floors) - Kinematic bodies: pushed by static, NOT pushed by dynamic - Dynamic bodies: pushed by everything Position correction rules: - Kinematic vs Static: kinematic gets pushed (floors block player) - Kinematic vs Dynamic: dynamic gets pushed (player pushes tesseract) - Dynamic vs Dynamic: both pushed proportionally to mass Velocity response: - Kinematic velocity is never modified (user-controlled) - Dynamic velocity responds to collisions normally This aligns with standard physics engine behavior (Box2D, Unity, Godot). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>


Author Willow Sparks Co-author Claude Opus 4.5 Date Commit Parent 7a9fd200
+152 -9
1 changed file
+152 -9
1 changed file