Skip to content

Commit

Permalink
kill me
Browse files Browse the repository at this point in the history
  • Loading branch information
ixnoahlive committed Jun 16, 2024
1 parent 7d8b7d6 commit 0ff5959
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/kotlin/live/ixnoah/tapactions/wrappers/Coordinates.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ object Coordinates {
else -> player.posZ + offset
}
}
// TODO: caret notation
// part.startsWith("^") -> {
// val offset = part.drop(1).toDoubleOrNull() ?: 0.0
//
// val pitchAdjusted = Math.toRadians((player.rotationPitch + 90).toDouble())
// val yawAdjusted = Math.toRadians((player.rotationYaw - 90).toDouble())
//
// coordinates[coordinateKey] = when (coordinateKey) {
// "x" -> player.posX + offset
// "y" -> player.posY + offset
// else -> player.posZ + offset
// "x" -> player.posX + offset * Math.sin(pitchAdjusted) * Math.cos(yawAdjusted)
// "y" -> player.posY + Math.cos(pitchAdjusted)
// else -> player.posZ + Math.sin(pitchAdjusted) * Math.sin(yawAdjusted)
// }
// }
else -> {
Expand All @@ -43,4 +46,4 @@ object Coordinates {

return coordinates
}
}
}

0 comments on commit 0ff5959

Please sign in to comment.