Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val offset = (ticks + partialTicks) % 360
- val bobAngle = Math.toRadians(offset * 3.0)
- val angle = Math.toRadians(offset).toFloat()
- val x = Math.sin(angle) * 0.5
- val z = Math.cos(angle) * 0.5
- val y = Math.sin(bobAngle) * 0.1
Add Comment
Please, Sign In to add comment