additional track fields + simplified arc helper

This commit is contained in:
nquidox 2026-04-17 16:24:53 +03:00
parent 5ba555b062
commit a1180ea769
2 changed files with 29 additions and 14 deletions

View file

@ -27,7 +27,10 @@ pub enum PathSegment {
#[derive(Resource)]
pub struct PrecalculatedTrack{
pub segments: Vec<PTSegment>
pub segments: Vec<PTSegment>,
pub min_spawn_gap: f32, //нормализован
pub total_length: f32,
pub speed_norm: f32,
}
#[derive(Debug)]
@ -41,6 +44,7 @@ pub struct PTSegment {
pub radius: f32,
pub start_angle: f32,
pub sweep_sign: f32,
pub length: f32,
}
#[derive(Debug, Clone, Copy)]