Question by
Uristenzor · Nov 14, 2020 at 04:19 PM ·
collisiononcollisionenter
Why is OnCollisionEnter called in every frame?
void OnCollisionEnter(Collision col)
{
Debug.Log($"collision with: {col.gameObject.name}");
}
The code is just as simple as that. However this log prints out the object is colliding with the ground every single frame.
collision with: Plane
collision with: Plane
collision with: Plane
collision with: Plane
collision with: Plane
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613015757im_/https://answers.unity.com/themes/thub/images/avi.jpg)