Hello yall I need someone way smarter than myself.
I want to do a small Minigame as a UI mechanic. There is a circle with a dot within. The dot can be moved with W,A,S,D and can travel freely inside the circle. The outside circle acts as a border for the dot.
Now i want to divide ther circle in 5 sectors. Every sector should be able to check if the dot is inside or not. Something like that
First Problem:
- The circle images always come with a square border, and the pivot point is positioned at the top-left corner. Initially, I attempted to calculate the positions, sizes, and borders of the four rounded triangles and the small central circle, but I cant wrap my head around it.
- Then, I considered creating five separate images for the sectors and positioning them accordingly. However, I encountered the pivot point issue once again, where it’s fixed at the top-left corner of the image border. I cant find a method on how to calculate the shape’s border for precise checking.
Thank you for your time reading this, and I hope someone can solve the knot in my head.
Unreal Engine Version: 5.3.2
Skripting: Blueprints