Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double dist = Math.sqrt(player.motionX * player.motionX + player.motionZ * player.motionZ);
- double angle = Math.tan(player.motionY / dist);
- if (!Double.isNaN(angle)) {
- GlStateManager.rotate((float) Math.toDegrees(angle), 1F, 0F, 0F);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement