Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 comment

0

Look at https://developer.roblox.com/en-us/api-reference/class/Weld. You should find the answer there

1 answer

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.

1 comment

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

This discussion is preserved as it was. New answers, comments, and votes are closed.