Alicez
1
I have 2 circles that both have Circle Collider 2D and ridgidbody 2D
One of the circles is controlled by code to move toward the target circle, which has the OnCollisionEnter2D code. I can not figure out why it is not detecting the collision. The circles just pass each other instead of colliding.
void OnCollisionEnter2D(Collision2D emCol){
print("hit me");
}
The target circle’s scale is controlled by another script to go between .5 and .75, but it seems like the collider’s size is changing along with the scale.
Attached both circle’s inspector. Thanks for the help!
you need to click the simulated checkbox, if you want them to not have gravity just set the gravityscale to 0