Sleitnick / AeroGameFramework

AeroGameFramework is a Roblox game framework that makes development easy and fun. The framework is designed to simplify the communication between modules and seamlessly bridge the gap between the server and client.
https://sleitnick.github.io/AeroGameFramework/
MIT License
215 stars 57 forks source link

Add AngleBetweenSigned #160

Closed Sleitnick closed 4 years ago

Sleitnick commented 4 years ago

The VectorUtil should include AngleBetweenSigned.

function VectorUtil.AngleBetweenSigned(vector1, vector2, axisVector)
    local angle = VectorUtil.AngleBetween(vector1, vector2)
    return angle * math.sign(axisVector:Dot(vector1:Cross(vector2)))
end
Sleitnick commented 4 years ago

Added in https://github.com/Sleitnick/AeroGameFramework/pull/164