|
| 15 Mar 2013 01:47 AM |
Alright, so my current problem should be pretty simple to solve, but I'm functioning at about 20% capacity right now, due to it currently being ~2:43 AM.
Anyways, I have GUI frames that I want to move it a random direction across the screen. How would I find the correct slope(s) that have 5 degree intervals? Like, to fill an entire circle. Ugh, I can tell that I've explained this badly, but there are 360 degrees in a circle, and I need the slopes of 72 lines(in 5 degree intervals(360/5=72)).
Any help? If you need it explained again, i'd understand :p |
|
|
| Report Abuse |
|
|
einsteinK
|
  |
| Joined: 22 May 2011 |
| Total Posts: 1015 |
|
|
| 15 Mar 2013 02:39 AM |
I'm good at math, but not that good -.-
You should try something like:
pos = UDim2.new(0,1*cos(degree),0,1*sin(degree)) (putting math. before cos and sin) |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2013 02:48 AM |
| Sorry for not posting earlier, but I have already accomplished this. Thanks for trying to help, at least :) |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2013 03:01 AM |
| If you're curious, this is the place I needed this tidbit of information for. |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2013 03:01 AM |
4:01 AM, please excuse me for not previously posting the link. >.<
http://www.roblox.com/Asteroids-place?id=22678021 |
|
|
| Report Abuse |
|
|