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

What are C0's and C1's and, how do I use them?

Asked by
cegberry 432 Moderation Voter
4 years ago

I don't get how C0's and C1's work, C0 is supposed to control the CFrame for Part0, but then if I use C1, which is supposed to change the CFrame for Part1, it changes the CFrame for Part0?

C1: https://i.imgur.com/YcPiRiw.png

(decided to post here instead of devhub because there would be less questions to answer and more easier)

I don't get how C0 and C1 work...

TL;DR: Please explain what C0 and C1 is

0
Look at https://developer.roblox.com/en-us/api-reference/class/Weld. You should find the answer there User#30567 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Before we continue, Let me mention that WeldConstraints are a newer alternative using the constraints system that does not require C0 or C1 properties to be manually set.

........................................................ On the roblox developer site, it states that

While the weld is Active, it maintains the part positions such that:

Part1.CFrame * C1 == Part0.CFrame * C0

And therefore:

C0 is a CFrame that determines how the offset point is attached to JointInstance.Part0.

And that:

C1 is a CFrame which is subtracted from the JointInstance.C0 property to create an offset point for JointInstance.Part1.

0
These explanations are not simple enough for me, as I've already read them before, and which makes no sense to me, what is a offset point?, I just need to know what C0 and C1 does cegberry 432 — 4y
Ad

Answer this question