About 'Triggers & Collisions In Unity'!

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Great timing with this lecture! I love the way you’ve presented this. I remember it somewhat from 1.0, but clearly not enough (I’ve had this gem in my source-code for a while longer than I wanted, but I’ve kept myself distracted from it with other things that also need addressing :slight_smile: When I wake-up it’ll get a good squashing though, thanks for the perspective!

It’s good to keep re-enforcing the idea that most answers are out there, if you only manage to look in the right place. That’s how I’ve managed to get my “Argon Assault” to nearly 900 lines of C# in 10 files now: spawning enemies and bonuses, pooling effects, managing player energy and death… Fun stuff!

#region Collision events...
    private void OnCollisionEnter(Collision collision)
    {
        // TODO: we're obviously colliding with things... why no log messages?
        Debug.Log("PlayerController.cs COLLISION tag: " + collision.gameObject.tag); 
    }
1 Like

Privacy & Terms