GL Circle with transform and collider

I have a custom drawing of 2D filled circle. Now i want to have different types of them and that they have a transform and a collider (They should behave like a GameObject does)

I want to detect if the player has clicked on such a circle, then check what type of circle was clicked and then to allow the player to move the selected circle around in WorldSpace.

A little example code would be helpful here.

1 Answer

1

If I understand correctly, you want to do sorta 'free form rendering' and be able to determine its bounds for collision purposes?

If so, perhaps you need to add a Box Collider to the object and set its bounds and position based on what you know you've drawn.