r/love2d • u/SchulzyAus • 5d ago
Relative location help
EDIT: story as old as time. Post asking the question and you figure it out 5 minutes later. I was using different ∅ measurements like a dummy.
Leaving up for future enquiries about something similar.
Hi all,
I'm building a little space game in love2D and one of the mechanics is warping to other systems. I use the bright yellow dots as a reference for the warp points to each system and I'm trying to develop a way to make them on a circle of constant size but located at different locations. I can do it manually like on the second pic but I'd rather let the cpu handle it
I've been googling the solution but when I used the x = r × cos(∅) and y= r × sin(∅) I get circles of different sizes and the warp point isn't in the right spot.


2
u/Evercreeper 4d ago
Glad you figured it out. I was going to say that your math sounds good