Hi,
I spawn some meteors. Upon collision, they’ll shatter into more meteors. To vary between sizes I immidiately change size after spawning. Also part of the spawning routine, is adding a ‘follower’ object. Which is basically a capsule collider with varying height depending on the speed of the meteor. This is used for navigating spaceships between the moving meteors. The size/radius of the capsule is also matched with the size of the meteor.
Unfortunately, it appears in some cases the extents of the bounds of the meteor appear to be zero, which result in the follower object being way too small (and thus ignored by the ships trying to avoid collisions).
I’m looking for possible explainations why the extents of a collider can be zero while the collider has size. I was thinking perhaps getting the bounds in the same frame as it’s spawned might be an issue. But google yielded no results when looking for that. I’d expected more people would’ve encountered this if it’s the case.
So what am I missing?
Thanks,
Koen