Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local alfa = 55
- local srodekx, srodeky, srodekz = 2235.41, 1684.29, 1010.53
- local promien = 18
- local lewa = true
- function RotacjaKamery()
- if lewa then
- alfa = alfa - 0.001
- else
- alfa = alfa + 0.001
- end
- if alfa > 5 then lewa = true end
- if alfa < 5 then lewa = false end
- c = srodekx + math.cos(alfa) * promien
- d = srodeky + math.sin(alfa) * promien
- setCameraMatrix(c,d, srodekz,srodekx, srodeky, srodekz)
- end
Advertisement
Add Comment
Please, Sign In to add comment