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

Why Need to add multiplication in CFrame?

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));

4 comments

0

"adding" multiplication lol

0

sorry im not good at english because i am from another country

0

i dont think thats a problem with language its a problem with maths

1 answer

✓ Accepted answer

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)

3 comments

0

i still dont get it but thanks for answering my question

0

ok let me show u

0

hhh

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