Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

C1 and C0 on welds?

Asked by
lucas4114 607 Moderation Voter
8 years ago

What are the C1 and C0, I just know that the C0 is position of part0 but idk what C1 is?

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
8 years ago

This is very well explained in this wiki article.

To summarize it, C0 defines the 'anchor' point of the Weld, in Part0's Object Space coordinates.

Part1's CFrame is then set using the World Space coordinates of C1 in the 'anchor's Object Space coordinates.

As an equation:

Part1.CFrame = Part0:toWorldSpace(C0):toWorldSpace(C1)

Ad

Answer this question