|
| 12 Oct 2013 09:40 PM |
| When rotating a weld using CFrame.Angles, you rotate a part relative to another part. My question is, is there any way to rotate the part normally with a weld? (not relative to another part) |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:44 PM |
yes, Sort of the thing i need help with, only simpler:
local vec = CFrame.new(Vector3.new(0,0,0), Vector3.new(0,0,1))--makes the CFrame look forward local cf = vec:toObjectSpace(weld.Part0.CFrame)--creates the offset needed cf is your end cframe value |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:47 PM |
Alright, so, I do
local vec = CFrame.Angles(0,math.pi/2,0) --What I want to rotate it by in world space local cf = vec:toObjectSpace(weld.Part0.CFrame) weld.C0 = weld.C0 * cf
Right? |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:50 PM |
| Don't ask me, i'm horrible at using CFrame methods. I had to get help on this subject before, so i just mostly copy and pasted from my old script. |
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:52 PM |
Well, where's the forum you got help on?
|
|
|
| Report Abuse |
|
|
|
| 12 Oct 2013 09:55 PM |
| it was over a year ago, so about 600 posts of mine ago... I would suggest wiki, but it doesnt give much information about this. |
|
|
| Report Abuse |
|
|
spynaz
|
  |
| Joined: 17 Feb 2011 |
| Total Posts: 1326 |
|
|
| 12 Oct 2013 09:57 PM |
| Then find it from one of your scripts. |
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Oct 2013 10:16 PM |
| I need to learn Objectspace and WorldSpace qq |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2013 04:35 PM |
I took the long route, and made two different bricks, each with a weld, so that I could control it remotely.
Gawd, I hate welds. |
|
|
| Report Abuse |
|
|