Here is the code which I have in my script:
Here is the output:
Am I being silly or should xCoord == wallInfo.x2 be true, since 16 does equal 16…?
Here is the code which I have in my script:
Here is the output:
Am I being silly or should xCoord == wallInfo.x2 be true, since 16 does equal 16…?
Are they both number variable types? Try printing out type(xCoord), type(wallInfo.x2) to check
Yup! Here’s the revised code:
I think this is due to floating point errors
Try to math.floor xCoord and wallInfo.x2