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

What does the multiply of vectors do?

What does the multiply of vectors do?
Like if it were to be placed ona graph with the multiplication of the vectors what would the result of it be based off of mathematically.

1 answer

As opposed to CFrames, where mutliplying is basically adding.. Multiplying vectors actually multiplies them, according to each X, Y, and Z members of the Vectors you're multiplying.

print(Vector3.new(1,5,10) * Vector3.new(2,3,1)) --> 2, 15, 10

--[[
	1 * 2 = 2,
	5 * 3 = 15,
	10 * 1 = 10
]]

2 comments

2

Multiplying CFrames isn't "basically adding" -- it's directly multiplying them, as matrices. Multiplying vectors isn't anything like "actually multiplying" them because that isn't defined for vectors.

0

Thanks for pointing that out, I was just stating what outcome that mutliplying CFrames / Vectors has.

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