Vector.get_distance()
Posted: Tue Jul 26, 2016 7:44 pm
Im having some weird issues,
Why is it always returning 0.0
Syntax: Select all
player_loc = player.location
print("Test | PlayerLoc: %s" % player_loc)
grid_loc = GetGridPosition(player_loc)
print("Test | GridLoc: %s" % grid_loc)
print(Vector.get_distance(player_loc, grid_loc))
Code: Select all
Test | PlayerLoc: Vector(193.81419372558594, 3332.374267578125, 8.03125)
Test | GridLoc: Vector(192.0, 3328.0, 8.0)
0.0
Why is it always returning 0.0