Need help explaining math/CFrame

Hello! I made this post because I really need help with stuff like mathematics in Roblox and CFrame/Phsyics. For example, right now I am trying to make a basic plane. However, from what i’ve seen, I should use stuff like AlignOrientation and LinearVelocity. The example I’m using as reference uses math to determine the CFrame. Like CFrame.fromEulerAnglesXYZ().

Questions: When do I know to use math for CFrame? How do you know what math equations to do for it? How do this physics-type objects work? Like BodyGyro, AlignOrientation, LinearVelocity, BodyVelocity.

Any help will be appreciated :cowboy_hat_face:

3 Likes

depends on what u need it for buddy

1 Like

What about, for say, a plane? As that is what I’m currently trying to achieve at the moment.

depends on what specific transformation u are trying to achieve buddy. if you’re rotating you will use rotational cframes or rotational physics constraints (Depends on how u decided to transform the object, either by roblox constraints or cframe math). If you’re translating you would use translational cframes or translational physics constraints (also depends on weather you would use physics constraints or cframe math)

both would require vector calculations.

1 Like

A CFrame is essentially an encoding of a 3D coordinate and a rotation matrix. The mathematics you want to learn is linear algebra.

1 Like

Quick question: What do you mean by translating?

Moving either up, down, left, right, or diagonaly by any amount. If I said I translated up, I mean I moved up. If something translates forward, it moves forward.

To your original question, I would suggest you learn learn how vectors + kinematics in physics work. This will give you the fundamental of understanding linear veocity, vector forces, CFrame math, Vector3 math, etc.

1 Like

Alright, thank you for the confirmation. I think tomorrow I will start to learn and take notes of what you and nosgnal said I should learn!

you don’t need to know linear algebra to understand how to use any of those btw

1 Like

a translation is basically a position

1 Like

No, linear algebra would have a place in this, of course physics is needed as well

1 Like

how would linear algebra help? All you need is knowledge of physics

No, translation is moving an object