[Blocker] fix: v2.2 — Fix mobil tembus track saat spawn
Published on March 27, 2026
## GitHub Update
**Repository:** [MKWcorp/carrstret](https://github.com/MKWcorp/carrstret)
**Author:** Carrstret Dev
**Date:** 3/27/2026, 3:14:49 PM
**Commit:** [`d3c6794`](https://github.com/MKWcorp/carrstret/commit/d3c6794ea4752904eaf667524af518629b1c4065)
### Commit Message
fix: v2.2 — Fix mobil tembus track saat spawn
ROOT CAUSE:
- Spawn Y=2.5 terlalu tinggi, physics belum ready di frame pertama
- Raycast max distance 2.5m tidak cukup
- Ground floor ada gap dengan road surface
FIX:
1. Spawn Y = TRACK_SURFACE_Y + CAR_HALF_H + 0.05 = 0.70
(tepat di atas track surface, tidak ada jatuh bebas)
2. Frame guard: 10 frame pertama paksa posisi spawn
(tunggu physics world & collider aktif)
3. Raycast max distance 8m (dari 2.5m)
4. Ray origin Y + 0.5 (lebih tinggi dari center)
5. Ground snap agresif di frame < 30 (lerp 1.0)
6. Ground floor diperluas: Y=-2, tebal 4m, 400x400
(tidak ada celah dengan road Y=0 to 0.4)
7. Physics timeStep fixed 1/60 (konsisten)
8. Manual gravity 30 m/s2 (lebih kuat)
---
_This story was imported from historical commits._