Closed lido22 closed 8 months ago
in mobility class this function is accessing the z-axis without checking if it exists.
def get_position(pos): return float('%s' % pos[0]), float('%s' % pos[1]), float('%s' % pos[2])
I fixed this issue by checking if it exists before accessing it. Otherwise it's set to zero
def get_position(pos): x = float('%s' % pos[0]) y = float('%s' % pos[1]) z = float('%s' % pos[2]) if len(pos) == 3 else float('%s' % 0) return x, y, z
Also did the same for move_factor
move_factor
in mobility class this function is accessing the z-axis without checking if it exists.
I fixed this issue by checking if it exists before accessing it. Otherwise it's set to zero
Also did the same for
move_factor