We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa57f9b commit ada6fa2Copy full SHA for ada6fa2
2 files changed
common/src/main/kotlin/com/lambda/interaction/request/rotation/RotationManager.kt
@@ -53,7 +53,6 @@ object RotationManager : RequestHandler<RotationRequest>(
53
TickStage.TickStart
54
), Loadable {
55
var currentRotation = Rotation.ZERO
56
- val nextRotation get() = activeRequest?.target?.targetRotation?.value ?: currentRotation
57
private var prevRotation = Rotation.ZERO
58
59
private var changedThisTick = false
common/src/main/kotlin/com/lambda/interaction/request/rotation/visibilty/RotationTargets.kt
@@ -47,7 +47,7 @@ annotation class RotationDsl
47
@RotationDsl
48
fun lookAt(angle: Rotation, maxAngleDistance: Double = 10.0) =
49
RotationTarget(null, {
50
- RotationManager.nextRotation dist angle < maxAngleDistance
+ RotationManager.currentRotation dist angle < maxAngleDistance
51
}) { angle }
52
/**
0 commit comments