Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.28 KB | None | 0 0
  1. def rotateFacing(entity: Entity = Minecraft.getMinecraft.getRenderViewEntity): Unit = {
  2.   val yaw = mc.getRenderManager.playerViewY
  3.   val pitch = mc.getRenderManager.playerViewX
  4.   val roll = 0
  5.   glRotated(-yaw, 0, 1, 0)
  6.   glRotated(pitch, 1, 0, 0)
  7.   glRotated(-roll, 0, 0, 1)
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement