Hello,I’m new to unity.i was wondering how I could make a some sort of hoop that my player can go trough and trigger a code like AddForce and I thought the way to go was add a cube and shape it like a paper then make it uncolidable and somehow making it trigger if something hits it.i don’t think there is anyways to do that so are there any other ways to do it other than this?
You should create a gameObject in the middle of the hoop, then add a collider of your desired shape, then check the box “is trigger,” on the collider. Then attach this script to that game object:
public class HoopTrigger : MonoBehaviour
void OnTriggerEnter(Collider other)
//Put your code that you want to execute here