Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
wait i actually took trig
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Jan 29, 2022
1 parent cd75a42 commit 07c1b5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/kotlin/world/cepi/mounts/MountHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ object MountHook {
player.heldMount!!.spawn(player.mobEgg!!, player.instance!!, position)
}

// todo if anyone knows trig i havent taken it yet someone please simplify this, or if its geometry i forgot it
fun yawToVec(yaw: Float) = Vec(cos(Math.toRadians((yaw + 90).toDouble())), 0.0, sin(Math.toRadians((yaw + 90).toDouble())))

fun hookUseOnBlock(event: PlayerUseItemOnBlockEvent) =
Expand Down

0 comments on commit 07c1b5e

Please sign in to comment.