Hex Casting

Hex Casting

6M Downloads

Floating-point weirdness with vectors

shBLOCK opened this issue · 4 comments

commented

Multiplying a vector with a negative number causes its 0 elements to turn to -0:
javaw_Y8r6sFuofI
Comparing (0,0,0)==(-0,-0,-0) works fine (returns 1)
But it doesn't seem to be working well with the Set operations, it thinks (0,0,0) != (-0,-0,-0): (here the XOR operation should think they're the same and return an empty list)
javaw_yzLLesTmkC
This causes my spell to only work in +x,+y and +z axis.

commented
commented

just kidding it will be fixed in this next push
image

commented

I also fixed the other set operations

commented

Thanks!
I absolutely love this mod, it's one of the few mods that is both creative and useful.
Looking forward for the next version!