mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Removed unused variables from randomDirection
I just realized there were some unused variables in the randomDirection function, so I removed them.
This commit is contained in:
parent
96c9648a62
commit
72a6a92ff6
@ -46,10 +46,8 @@ local function randomDirection(len_min, len_max)
|
||||
|
||||
assert(len_max > 0, "len_max must be greater than zero")
|
||||
assert(len_max >= len_min, "len_max must be greater than or equal to len_min")
|
||||
|
||||
local range = len_max - len_min
|
||||
local rnd = math.random() * range
|
||||
return fromPolar(math.random()*2*math.pi,
|
||||
|
||||
return fromPolar(math.random() * 2*math.pi,
|
||||
math.random() * (len_max-len_min) + len_min)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user