does the OnCollisionEnter take a signal from rigidbodies? i think not at this point, but, i can't put box collider 2D (it's a 2d game) and rigidbody together, so i put capsule collider on this object and rigidbody on the other which is hitting this (he's the player) but it doesn't work, i checked many times everything was connected to the objects, so that is not the problem
#can rigidbody and collider collide?
1 messages · Page 1 of 1 (latest)
Both need to have a collider, another thing is that 2D colliders only work with the 2D collider methods, so OnCollisionEnter2D for 2D colliders
oh, ok, what if i used a rigidbody 3d and a collider3d? does they work the same but with optimization problems or do they give errors? (just for knowledge, now i change them
I wouldn't see any reason why you'd ever want 3D components in a 2D game
ok, i switched all the components and now they collide, the character stops, but the console doesn't log the message (i changed the void in ''OnCollisionEnter2D")