rename to SetTrajectory::is_absolute

This commit is contained in:
Quaternions 2024-02-09 21:25:50 -08:00
parent f155dd6a50
commit d31dcd0b19

View File

@ -56,7 +56,7 @@ pub enum SetTrajectory{
Velocity(Planar64Vec3),//SetVelocity
}
impl SetTrajectory{
pub const fn is_velocity(&self)->bool{
pub const fn is_absolute(&self)->bool{
match self{
SetTrajectory::AirTime(_)
|SetTrajectory::Height(_)
@ -97,7 +97,7 @@ impl GeneralAttributes{
||self.accelerator.is_some()
}
pub fn is_wrcp(&self)->bool{
self.trajectory.as_ref().map_or(false,|t|t.is_velocity())
self.trajectory.as_ref().map_or(false,|t|t.is_absolute())
/*
&&match &self.teleport_behaviour{
Some(TeleportBehaviour::StageElement(