From fc3d72393f604b89c931ff8df3c25ba07d3ca32e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 1 Nov 2023 18:18:26 -0700 Subject: [PATCH] rename enum --- src/model.rs | 2 +- src/physics.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!(), }