Fixed snake example after Vector2Angle change.

This commit is contained in:
jussi
2023-11-23 18:36:05 +02:00
parent 1ab9722875
commit 925afdf101
6 changed files with 29 additions and 6 deletions

View File

@@ -130,8 +130,8 @@ function Vector2:lineAngle( v2 )
return RL.Vector2LineAngle( self, v2 )
end
function Vector2:atan()
return math.atan( self.x, self.y )
function Vector2:atan2()
return math.atan( self.y, self.x )
end
function Vector2:scale( scale )