additional track fields + simplified arc helper
This commit is contained in:
parent
5ba555b062
commit
a1180ea769
2 changed files with 29 additions and 14 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue