PaleoCrafter

Untitled

May 7th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.22 KB | None | 0 0
  1. val offset = (ticks + partialTicks) % 360
  2. val bobAngle = Math.toRadians(offset * 3.0)
  3. val angle = Math.toRadians(offset).toFloat()
  4. val x = Math.sin(angle) * 0.5
  5. val z = Math.cos(angle) * 0.5
  6. val y = Math.sin(bobAngle) * 0.1
Add Comment
Please, Sign In to add comment