BigW Consortium Gitlab

Commit be7d978a by Douwe Maan Committed by Phil Hughes

Pick a random float position between two positions instead of one exactly halfway

parent ac868482
......@@ -118,7 +118,7 @@ module RelativePositioning
def position_between(pos_before, pos_after)
pos_before, pos_after = [pos_before, pos_after].sort
pos_before + (pos_after - pos_before) / 2
rand(pos_before.next_float..pos_after.prev_float)
end
def save_positionable_neighbours
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment