From 90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 22:39:47 +0200 Subject: [feat]: wire in scene into the simulation engine --- src/scene/scene_types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/scene/scene_types.h') diff --git a/src/scene/scene_types.h b/src/scene/scene_types.h index d34983f..61bea35 100644 --- a/src/scene/scene_types.h +++ b/src/scene/scene_types.h @@ -8,6 +8,12 @@ namespace Donut // portable renderers (SceneRenderer, BlackHoleRenderer). The rendering itself // is written once on the RHI (rendering/rhi.h); these are just the inputs. + // The scene editor and the simulation share ONE world at this scale: this many + // grid units == one Schwarzschild radius. The SceneRenderer draws the hole's + // horizon at this radius; the BlackHoleRenderer maps scene positions into + // physical units (x SagA_rs / SCENE_UNITS_PER_RS) so placed objects line up. + constexpr float SCENE_UNITS_PER_RS = 3.0f; + // A placeable/editable sphere in the world-builder scene view. The app owns // the list; SceneRenderer draws it the same way on every backend. struct SceneObject -- cgit v1.3