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

How do quarternions work and how do they work with CFraming?

Asked by 9 years ago

How do quarternions work and how do they work with CFraming. I know there important for interpolating angle to other angles. One more question can someone also explain how .unit retrieves direction for vectors.

1
This is more purely math. Look around the web for quaternions, I will tell you, they are difficult to grasp. You can also search up "unit vector formula" or something. I believe that this is calculus stuff here. It'll be much better for you if the info is coming from professionals SurVur 86 — 9y
0
@SurVur, how ridiculous, he also asked how they worked with CFraming so they are related to ROBLOX DevChris 235 — 9y
0
CFrames are the matrix that quaternions use. They're related to Roblox because they're called "CFrames" instead of "matrix." 1waffle1 2908 — 9y

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
9 years ago

There are a few articles about quaternions:

http://wiki.roblox.com/index.php?title=Quaternions_for_rotation http://wiki.roblox.com/index.php/User:MrNicNac/Quaternion http://en.wikipedia.org/wiki/Quaternion http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

A unit vector is derived by dividing a vector by its magnitude. The length of the resulting vector is one.

Ad

Answer this question