Advertisement
Guest User

Untitled

a guest
Jun 14th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. double dist = Math.sqrt(player.motionX * player.motionX + player.motionZ * player.motionZ);
  2. double angle = Math.tan(player.motionY / dist);
  3. if (!Double.isNaN(angle)) {
  4.     GlStateManager.rotate((float) Math.toDegrees(angle), 1F, 0F, 0F);
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement