diff --git a/src/model.rs b/src/model.rs index 78bd5a1..553f08c 100644 --- a/src/model.rs +++ b/src/model.rs @@ -135,7 +135,7 @@ pub enum GameMechanicSetTrajectory{ target_point:Planar64Vec3, time:Time,//short time = fast and direct, long time = launch high in the air, negative time = wrong way }, - TrajectoryTargetPoint{//launch at a fixed speed and land at a target point + TargetPointSpeed{//launch at a fixed speed and land at a target point target_point:Planar64Vec3, speed:Planar64,//if speed is too low this will fail to reach the target. The closest-passing trajectory will be chosen instead trajectory_choice:TrajectoryChoice, diff --git a/src/physics.rs b/src/physics.rs index 4039dfb..c7fe4ca 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1157,7 +1157,7 @@ impl crate::instruction::InstructionConsumer for PhysicsStat crate::model::GameMechanicSetTrajectory::AirTime(_) => todo!(), crate::model::GameMechanicSetTrajectory::Height(_) => todo!(), crate::model::GameMechanicSetTrajectory::TargetPointTime { target_point: _, time: _ } => todo!(), - crate::model::GameMechanicSetTrajectory::TrajectoryTargetPoint { target_point: _, speed: _, trajectory_choice: _ } => todo!(), + crate::model::GameMechanicSetTrajectory::TargetPointSpeed { target_point: _, speed: _, trajectory_choice: _ } => todo!(), &crate::model::GameMechanicSetTrajectory::Velocity(velocity)=>v=velocity, crate::model::GameMechanicSetTrajectory::DotVelocity { direction: _, dot: _ } => todo!(), }