aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/delta.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2022-11-12 23:54:05 -0600
committerGitHub <noreply@github.com>2022-11-12 23:54:05 -0600
commit6eee543a3367d38a6f0e9bffb457a2bd76a8f9cc (patch)
treea5e493ccd7ec24293b8d866242c3836146517122 /azalea-core/src/delta.rs
parentfa57d03627aa20b1df44caed7cb025b6db1d9b53 (diff)
downloadazalea-drasl-6eee543a3367d38a6f0e9bffb457a2bd76a8f9cc.tar.xz
Pathfinder (#25)
Pathfinding is very much not done, but it works enough and I want to get this merged. TODO: fast replanning, goals that aren't a single node, falling moves (it should be able to play the dropper), parkour moves
Diffstat (limited to 'azalea-core/src/delta.rs')
-rwxr-xr-x[-rw-r--r--]azalea-core/src/delta.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/azalea-core/src/delta.rs b/azalea-core/src/delta.rs
index d1f72c17..4f730d14 100644..100755
--- a/azalea-core/src/delta.rs
+++ b/azalea-core/src/delta.rs
@@ -1,5 +1,3 @@
-use std::ops::{Add, AddAssign};
-
use crate::Vec3;
pub use azalea_buf::McBuf;
@@ -76,24 +74,3 @@ impl Vec3 {
self.multiply(amount, amount, amount)
}
}
-
-// impl + and +=
-impl Add for Vec3 {
- type Output = Vec3;
-
- fn add(self, other: Vec3) -> Vec3 {
- Vec3 {
- x: self.x + other.x,
- y: self.y + other.y,
- z: self.z + other.z,
- }
- }
-}
-
-impl AddAssign for Vec3 {
- fn add_assign(&mut self, other: Vec3) {
- self.x += other.x;
- self.y += other.y;
- self.z += other.z;
- }
-}