aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-03 03:18:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-03 03:18:21 +0200
commit075b7c517bb0a4f0c06156d351baba37b9317957 (patch)
treec12ae9a991a78f9339b0c8fe5513ef4f0127b4ee /src/main/java/at/hannibal2/skyhanni
parent80dcffa8edcf13740a7b174f04a3f98a94311e49 (diff)
downloadskyhanni-075b7c517bb0a4f0c06156d351baba37b9317957.tar.gz
skyhanni-075b7c517bb0a4f0c06156d351baba37b9317957.tar.bz2
skyhanni-075b7c517bb0a4f0c06156d351baba37b9317957.zip
add line to animation
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
index 9cb8210c1..493398836 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowHelper.kt
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.BurrowDetectEvent
import at.hannibal2.skyhanni.events.BurrowDugEvent
import at.hannibal2.skyhanni.events.SoopyGuessBurrowEvent
+import at.hannibal2.skyhanni.test.GriffinUtils.draw3DLine
import at.hannibal2.skyhanni.utils.BlockUtils.getBlockAt
import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzColor
@@ -114,7 +115,7 @@ class GriffinBurrowHelper {
if (SkyHanniMod.feature.diana.burrowSmoothTransition) {
animationLocation?.let {
event.drawColor(it, LorenzColor.WHITE)
- animationLocation = moveAnimation(it)
+ animationLocation = moveAnimation(it, event)
}
}
@@ -131,7 +132,7 @@ class GriffinBurrowHelper {
}
}
- private fun moveAnimation(animation: LorenzVec): LorenzVec? {
+ private fun moveAnimation(animation: LorenzVec, event: RenderWorldLastEvent): LorenzVec? {
val list = mutableListOf<LorenzVec>()
list.addAll(particleBurrows.keys)
guessLocation?.let {
@@ -148,6 +149,8 @@ class GriffinBurrowHelper {
var vector = target.subtract(animation)
+ event.draw3DLine(animation.add(0.5, 0.5, 0.5), target.add(0.5, 0.5, 0.5), LorenzColor.WHITE, 2, true)
+
vector = vector.multiply(1 / vector.length())
vector = vector.multiply(0.18)
return animation.add(vector)