Hi, made a radar thats oriented toward the camera's yaw, but im trying to use a circular background. Say im facing an enemy, the radar will show a dot thats 90 degrees above me and i do a 180 so the dot should be at 270. during the 180 the dot hits the edge of the dialog and you can see the edge. no matter how big the dialog is the dots will always be cut off at the edge of the square box. Is there a way to make that rectangle a circle? or do i have to stick with a rectangular radar?
Im just going to stick with a rectangular dialog. but i have a new problem, I havent done any math in years and was hoping someone one can help me clean/ fix my trigger.
The idea is that I turned the dialog into a grid with origin(0,0) in the center. It was easy to get the offset relative to the map, but it got much more complicated when I tried to relative to the cameras yaw (its a tps). It seems that the camera goes from 0 -180, then -180 to -0. which really messed with my head. Im using the basic polar coordinates to cartesian conversion formulas, but with its not working so well. Had to change the equations up for each section of the grid (x,y; -x,-y: -x,y; x,-y). its been years since i had to use trigonometry, is there a better way to do this?
Hi, made a radar thats oriented toward the camera's yaw, but im trying to use a circular background. Say im facing an enemy, the radar will show a dot thats 90 degrees above me and i do a 180 so the dot should be at 270. during the 180 the dot hits the edge of the dialog and you can see the edge. no matter how big the dialog is the dots will always be cut off at the edge of the square box. Is there a way to make that rectangle a circle? or do i have to stick with a rectangular radar?
Im just going to stick with a rectangular dialog. but i have a new problem, I havent done any math in years and was hoping someone one can help me clean/ fix my trigger.
The idea is that I turned the dialog into a grid with origin(0,0) in the center. It was easy to get the offset relative to the map, but it got much more complicated when I tried to relative to the cameras yaw (its a tps). It seems that the camera goes from 0 -180, then -180 to -0. which really messed with my head. Im using the basic polar coordinates to cartesian conversion formulas, but with its not working so well. Had to change the equations up for each section of the grid (x,y; -x,-y: -x,y; x,-y). its been years since i had to use trigonometry, is there a better way to do this?
Oh never mind, figured out the equations, heres a little demo if anyones interested
@DrHu: Go
I approve of this.
@PirateArcade | I make games | Ask me things on Discord