I have a main character (player), he has 2 collisions.
1 his body that collects coins and reacts to enemy touch
2 circle of his perception, if the enemy touches the circle of perception, then he understands its angle, and creates a bullet flying into it
Coin
Has a collision with trigger type. Removed when the player’s body touches it but not the circle of perception
Enemy
Has body collision
Does not react to coins and the circle of perception, but if it touches with a bullet, it is removed. When it dies, it creates a coin.
How it is possible to implement it and not to mix collisions?
Is it possible to get the distance to an object without the help of collisions? when the distance with the enemy is less than 10 - a bullet is created?
Tell me how to implement a bullet hell game.
Does it make sense to use so many collisions?
How to correctly refer to the created object from the object that did not create it?