Is it possible to get an OnCollisionEnter with 2 objects that neither have rigid bodies (but both have colliders (box and capsule))?
If not, and I have to use rigid bodies, how many can I have before my system blows up?
Requirements call for as many as 200 active objects on the screen, that may or may not collide with each other (based on what type of object they are).
On Another note, how come my bullets don’t move with my camera (I set the parent to the camera, so everything stays on the same “plane” of play. But when I rotate the camera, They don’t quite stay on the plane.
One thing I see is that you’ve got IgnoreCollision inside an OnCollisionEnter function. But by the time there’s a collision, it’s too late to ignore the collision since it’s already happened. The purpose of IgnoreCollision is to prevent OnCollision functions from ever occuring, so that needs to be set up in Start or something.
Well, there’s really no way around that if you want collisions to be ignored. You simply can’t call it after the collision has occured because it will have no effect, other than to ignore any further collisions (but that’s not what you want). Anyway I doubt you’d see any problems unless you have an insane number of objects.
well, pre optimizations, I am expecting about 500-700 items existing in the level at any one time. If I limit that to what’s on screen/in frustum, I can cut that number to around 200 top end.