19-02-2021, 04:11 PM
(This post was last modified: 19-02-2021, 04:27 PM by josemendez.)
I don’t think you can reliably use list intersection() or contains() operations when the contents are floating point data. These use the type’s default comparer. This won’t work unless you provide a custom comparer that uses an epsilon to tell if two Vector3 are close enough to each other. Unless the particle positions are *exactly* the same, a direct comparison between floating point values is very likely to fail.
See: https://docs.unity3d.com/ScriptReference...ately.html
See: https://docs.unity3d.com/ScriptReference...ately.html