mirror of
https://github.com/galacean/engine.git
synced 2026-10-21 19:21:09 +08:00
Normalize directions at the API boundary so `distance` is a world-space length on every backend, and treat directions with no unit form as a miss. `Vector3.normalize` now reports whether it wrote a unit vector. BREAKING CHANGE: `IPhysicsScene.raycast` takes `origin`/`direction` instead of a `Ray`; custom physics backends must adapt.