Hello,
Currently, I am comparing the distance by using a raycast from the object to the static mesh.
which isn't quite correct, since the static mesh can have a hollow body, so the ray won't hit anything,
or get hit at a far distance, the wall at the very far end.
So I try to compare against the bounding boxes of each frame in the hierarchy which will lead to
a performance hit if the hierarchy is very huge.
Is it possible to form a large irregular tight bounding volume of the static geometry.
So that a ray can be casted on it?
Thanks
Jack