mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
ln 179 & 181: second self.y changed to self.x
For vector:angleTo()
This commit is contained in:
parent
81f0faf476
commit
157ec82cd5
@ -176,9 +176,9 @@ end
|
||||
|
||||
function vector:angleTo(other)
|
||||
if other then
|
||||
return atan2(self.y, self.y) - atan2(other.y, other.x)
|
||||
return atan2(self.y, self.x) - atan2(other.y, other.x)
|
||||
end
|
||||
return atan2(self.y, self.y)
|
||||
return atan2(self.y, self.x)
|
||||
end
|
||||
|
||||
function vector:trimmed(maxLen)
|
||||
|
Loading…
Reference in New Issue
Block a user