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

How do you learn more CFrame and Vector3?

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.

5 comments

1

go to wiki.

1

Did you even read what I said?

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

0

I'd advise you to learn about matrices and vectors in a more abstract sense.

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

1 answer

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)

1 comment

0

Hope this helps!!!

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