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

How do you learn more CFrame and Vector3?

Asked by 6 years ago

I've read every tutorial, I've seen every wiki article and I still only understand the basics of CFraming and Vector3, I don't know why or how CFrame or Vector3 works but I know how to rotate parts using CFrame.Angles() and all that but how do I learn beyond that?

The wiki is very vague and is confusing, doesn't even explain what any of the advanced stuff is and makes things complicated.

How do you learn about all those functions like CFrame.p and lookVector and how to utilize them properly to make stuff like a placement system and what not. I feel like theres a tutorial out there that everyone but me has seen.

1
go to wiki. CjayPlyz 643 — 6y
1
Did you even read what I said? YabaDabaD0O 505 — 6y
1
http://wiki.roblox.com/index.php?title=User:EgoMoose/Articles/CFramesAndVectors            ......... Egomoose also has some articles on the dot product and the cross product theCJarmy7 1293 — 6y
0
I'd advise you to learn about matrices and vectors in a more abstract sense. Avigant 2374 — 6y
0
Just go to wiki or read the lua manual. Vector3 is three numbers which state the coordinates of an object inside the roblox workspace. CFrame is three different vector3 values together, The position, the orientation and the size. The wiki can't be any clearer in explaining this concept. However, I advise a day out in the field is better than a thousand books- get your hands dirty! :P oggy521 72 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

When I first started scripting 3 years ago I was like that I learnt from examples so..

CFrame

local Obj = workspace.Object
local Obj2 = workspace.Object2

Obj.CFrame = Obj2.CFrame -- You can use other parts as a target

Vector3

local Obj = workspace.Object
local Obj2 = workspace.Object2
x =0
y = 2
z = 0

Obj.Position = Obj2.Position + Vector3.new(x,y,z)
0
Hope this helps!!! NYDynamics 71 — 6y
Ad

Answer this question