georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 01 Sep 2015 09:38 PM |
Whenever I weld this to the characters head, the object is upside down... w.C0 = CFrame.new(0, -.8, 0) So then I added this... w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(180,0,0) Yet it still doesn't work. I am not that good at CFraming.
(I only included welding and CFraming, everything else works)
Is there something really simple I'm missing? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 09:45 PM |
CFrame is in radians, not degrees. 180 degrees = 3.14 radians, or math.pi. Use math.pi as your reference variable.
Lord of all things, breaded and unbreaded. |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 01 Sep 2015 09:47 PM |
| I'm a little bit confused, |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 01 Sep 2015 09:48 PM |
| is it possible to use degrees? |
|
|
| Report Abuse |
|
|
|
| 01 Sep 2015 09:50 PM |
Not without doing the math.
180 = math.pi, so put in math.pi to rotate 180.
Lord of all things, breaded and unbreaded. |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 01 Sep 2015 09:52 PM |
So like...
w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(math.pi, 0,0)
I feel like I need to put the 180 somewhere |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
| |
|
|
| 01 Sep 2015 10:59 PM |
| math.rad() converts degrees to radians |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 02 Sep 2015 09:32 PM |
| Is there a WIKI page on this? |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 02 Sep 2015 10:03 PM |
| Oh, I got it.. So like math.rad(180)? |
|
|
| Report Abuse |
|
|
georgeba
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1092 |
|
|
| 02 Sep 2015 10:06 PM |
Got it.. For anyone interested this is what I did
w.C0 = CFrame.new(0, -.8, 0)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0))
|
|
|
| Report Abuse |
|
|