- Home /
Use child collider and parent collider
Hello, so I've been making this rhythm game for a while, and I have added "long notes", the problem is, I have a capsule collider on a empty game object, the children are, two circles (one in the beggining and one in the end) and a white line in the middle to represent a slider, if I only have the capsule collider on parent, I can press a key at any moment while the capsule collider is on the activator area (the one where the long note will fall to), and I want it only to be able to be pressed ONLY when the first circle collider hits the activator, not the whole note.
My workaround was giving the first circle a collider and giving it the properties of a normal note, but this way, unity only recognizes the first note and not the whole slider, then I can't "hold" a key while the slider is falling.
Basically, I want to be able to only press a button when the first circle collider hits the activator, while still being able to hold a key on the whole capsule collider on the parent