Sin animation

How to make this rotation ? Not full rotation around the axis.


draw.SimpleText("SimpleText", "Default", (ScrW() / 2) , (ScrH() / 2), Color(255,255,255,255))

// math.sin() and .... ?


Check the 2nd example here:

cam.PushModelMatrix

That’s not what I need , it’s make a full circle around the axis.


local tiltspeed = 2
local tiltang = 20
ang = 0 + math.Sin(CurTime() * tiltspeed) * tiltang)

should make it tilt 20 degrees one way then the other

just change the offset kek