diff options
Diffstat (limited to 'crates/fparkan-runtime/src/route_traffic.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/route_traffic.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/fparkan-runtime/src/route_traffic.rs b/crates/fparkan-runtime/src/route_traffic.rs index 193ea995..4aaad17d 100644 --- a/crates/fparkan-runtime/src/route_traffic.rs +++ b/crates/fparkan-runtime/src/route_traffic.rs @@ -18,7 +18,11 @@ pub(super) struct FrameTraffic { bodies: Vec<Body>, } -fn body_radius(assets: &MissionAssets, index: usize, pose: TransformState) -> Option<f32> { +pub(super) fn body_radius( + assets: &MissionAssets, + index: usize, + pose: TransformState, +) -> Option<f32> { let (center, radius) = unit_sphere(assets, index, pose)?; let [x, y, _] = pose.position.map(f32::from_bits); let radius = radius + (center[0] - x).hypot(center[1] - y); |
