I am using a grid system to determine an object’s adjacency to another. I’m checking the relative position of the static object to the position of the movable object.
The thing I need help with is the range() function. I need to iterate over (-1, 0, 1) per dimension, so I use
range(-1, 1)
Which produces -1’s and 0’s.
Similarly,
range(-1, 2)
produces the same thing.
I thought arg1 was Start, arg2 was Stop, and optional arg3 was Step defaulted to 1. What gives?
I … can’t reproduce your troubles:
Working as expected.