alestane icon

Swipe movement (measure)

alestane | PRO | 01/02/14 02:42:46 PM UTC | 0 ⭐ | 329 👁️ | Never ⏰ | []
Lua |

310 B

|

None

|

0 👍

/

0 👎

    local function touchFunkx(event)
        local xDistance, yDistance = event.x - event.xStart, event.y - event.yStart
 
        if event.phase == "ended" then
            local distance = math.sqrt(xDistance * xDistance + yDistance * yDistance)
            local angle = (math.atan2(yDistance, xDistance) * 180 / math.pi + 45) % 360
        end
    end

Comments