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

Why Need to add multiplication in CFrame?

Asked by 5 years ago
Edited 5 years ago

Im confused about CFrame and why they're adding multiplication on it? and How it work?

For Example Something like this:

local CF = CFrame.new(1, 2, 3) * CFrame.Angles(math.rad(14), math.rad(72), math.rad(-32));
0
"adding" multiplication lol User#24403 69 — 5y
0
sorry im not good at english because i am from another country RealPlays20 3 — 5y
0
i dont think thats a problem with language its a problem with maths TheluaBanana 946 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

im gonna assume u mean by this

a * b

where a and b are CFrames.new's

so to answer ur question what the multiplication sign does here is to get the combined location of the two CFrames.new's

So like, if u ran the operation there and plotted it on a 3D graph ull see the average of the two CFrames will be exactly in between the two original CFrames if u still dont get it

However, when u have a CFrame.new average with a CFrame.Angles and plot down on a 3D graph, ull get a marker on the position of the CFrame.new, with rotation according to the paramaters of the CFrame.Angles averaged with the CFrame.new's rotations. Its the same thing really, but seeing that u cant really grasp it now ill just tell u that to fit ur exapmle better

e.g for instance 1:

https://gyazo.com/0a61037fca7ac53e2100773884c3114e

e.g for instance 2:

https://gyazo.com/7be084429a19677098f0dd2485634d17

so yeah sorry for not formatting the links but u could see that it gets the combined angles(i hope)

0
i still dont get it but thanks for answering my question RealPlays20 3 — 5y
0
ok let me show u TheluaBanana 946 — 5y
0
hhh TheluaBanana 946 — 5y
Ad

Answer this question