If i have a rectangle 2d object and suddenly it overlaps 2 or more other objects at once, will the rectangle’s “OnCollisionEnter2D” get called more than once in a single frame? I am instantiating a rectangular object in a game and it “might” overlap with more than one object when i instantiate it. Also, when does the “OnCollisionEnter2D” get called? Is it before Update function or after? Last, will “OnCollisionEnter2D” get called multiple times before or after the Update function? Thanks!
Is called at the same time of Update.
Using a rigidbody will call once time only, till other gameObject collide.
In a single frame the Collision event will be called a maximum of one time for each object that has collided with it that frame. The collision event is called in the physics step which happens after Update, LateUpdate and FixedUpdate.