|
| 19 Nov 2013 01:20 PM |
CFrame.Angels is math.pi * 2 for 360 rotation right? Like pi2 = math.pi * 2 Part.CFrame = Part.CFrame * CFrame.Angles(pi2, pi2, pi2) Would change nothing right? I can't test because Im on a iPhone atm |
|
|
| Report Abuse |
|
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
| |
|
|
| 19 Nov 2013 01:59 PM |
for a = 0,360 do print(a * (math.pi/180)) end
So that would be the way to convert a number from 0 to 360 into turn? Like for a = 0,360 do b = a * (math.pi/180) Part.CFrame = Part.CFrame * CFrame.Angles(b, b, b) wait(0.03) end
Would rotate all the way around and back to how it was? |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 02:06 PM |
I would assume so. However I recommend you use the math.rad() function rather than math.pi/. |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 02:07 PM |
| Whats wrong with math.pi / whats the difference / what is math.rad() |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 02:12 PM |
Why do you need to turn a part 360 degrees?
coughcirclecough |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2013 02:18 PM |
| For CFraming, the number won't always be 360 its a textbox |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 19 Nov 2013 02:53 PM |
Well not knowing what you want
part.CFrame = part.CFrame * CFrame.Angles(360,0,0) this is probably waht you want. |
|
|
| Report Abuse |
|
|