I noticed that the documentation for Vector3:isClose()
doesn’t say what the default epsilon is. I did some testing and I think it’s supposed to be 0.00001
. I think it would be much more convenient for people if it was documented on the wiki. That way nobody has to fiddle around with numbers to figure out what it is.
Btw here’s the code to check what it actually is:
print("--|| Valid ||--")
local validVect = Vector3.new(.00001)
print("without arg:", validVect:isClose(Vector3.new()))
print("with arg:", validVect:isClose(Vector3.new(), .00001))
local invalidVect = Vector3.new(.0001)
print("\n--|| Invalid ||--")
print("without arg:", invalidVect:isClose(Vector3.new()))
print("with arg:", invalidVect:isClose(Vector3.new(), .00001))