Quantcast
Viewing latest article 22
Browse Latest Browse All 51

Does an asleep rigidbody mess with the OnTriggerEnter function?

void OnTriggerEnter(Collider col){ Debug.Log (col.name + " is in the volume"); } The code is extremely unexciting, but the collider name isn't even displayed. I noticed that this happens shortly after the rigidbody stops moving for a while. Edit: I probably should have mentioned that I'm instantiating the volume on top of the rigidbodies.

Viewing latest article 22
Browse Latest Browse All 51

Trending Articles