This is a really weird bug, but I think I’ve pinned down where it’s happening.
When I call physics.removeBody on an object and cast a ray (physics.rayCast) that would have collided with that object on the same frame, an odd thing occurs: the table of hits (using “unsorted”) gives me a “hit” for that object, but the “hit” has no “object” key. I only have “position”, “normal”, and “fraction”. It seems like, if you were to remove the body of an object, it shouldn’t give you any “hit”.
Not a big issue; I can just accommodate for it manually, but is this intended?
- C