|
| 11 Oct 2012 03:19 PM |
| Well, I'm trying to move a gui object radially, but unfortunately 0 is not centrally plotted... How would I go about moving a gui object around the center of something? The normal part rotate uses special CFrame, but that won't work for the style of guis. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:21 PM |
| GUI rotation is, at the moment, almost impossible. There's a nice little property or method coming soon which will allow you to easily rotate GUIs. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:23 PM |
| There is an algorithm though :/ Used it on a 2D set the other day |
|
|
| Report Abuse |
|
|
| |
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 11 Oct 2012 03:42 PM |
| Add half the size of the screen to your 2D point and it should be fine. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:45 PM |
According to a message I got from sorcus, they ran into issues and have stopped working on it for now D:
- I script and people liek it. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 03:49 PM |
| @Ray. Duh. But how would the loop go without the use of radians? |
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 11 Oct 2012 04:10 PM |
| math.rad() converts degrees to radians and math.deg() converts radians to degrees. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 04:18 PM |
On a 2D plane? My brick rotating uses:
—————————————————————————————————— p.CFrame = CFrame.new(0, 120, 0) * CFrame.Angles(0, math.rad(angle), 0) * CFrame.new(0, 0, dist) ——————————————————————————————————
How to convert this to 2D? |
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 11 Oct 2012 07:23 PM |
| Get rid of the unused axis. |
|
|
| Report Abuse |
|
|
|
| 11 Oct 2012 07:44 PM |
Check out my compass.
http://www.roblox.com/Compass-item?id=58018327 |
|
|
| Report Abuse |
|
|