Guest User

Untitled

a guest
Jul 19th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local alfa = 55
  2. local srodekx, srodeky, srodekz = 2235.41, 1684.29, 1010.53
  3. local promien = 18
  4. local lewa = true
  5. function RotacjaKamery()
  6. if lewa then
  7. alfa = alfa - 0.001
  8. else
  9. alfa = alfa + 0.001
  10. end
  11. if alfa > 5 then lewa = true end
  12. if alfa < 5 then lewa = false end
  13. c = srodekx + math.cos(alfa) * promien
  14. d = srodeky + math.sin(alfa) * promien
  15. setCameraMatrix(c,d, srodekz,srodekx, srodeky, srodekz)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment