|
| 15 Jan 2013 10:30 PM |
I have been reading up on welds and one thing that I still don't get.
(This is from a wiki article)
local function weldBetween(a, b) local weld = Instance.new("ManualWeld") weld.Part0 = a weld.Part1 = b weld.C0 = CFrame.new() weld.C1 = b.CFrame:inverse() * a.CFrame weld.Parent = a return weld; end
What is the inverse and the * a.Cframe doing?? Also what is the weld.C0 = CFrame.new() doing? |
|
|
| Report Abuse |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 15 Jan 2013 10:48 PM |
I use
weld = Instance.new("Weld") weld.Parent = limbs[1] weld.Part0 = limbs[1] weld.Part1 = workspace.Part1 weld.C0 = CFrame.new(0,0,0) *Cframe.angles(0,0,0)
Quite different? |
|
|
| Report Abuse |
|