11/11/2023 0 Comments Unity game engine imaginary numbers![]() Quaternion can be combined (multiply one to another, the order matters!), interpolated and inverted.Then turn to somewhere else, this is now your new rotation that is combination of the previous one and the amout of rotation you've just applied to yourself. Imagine you have some orientation in space, it is your rotation now. Quaternion is a rotation itself, as the action.Quaternions are representing the 4D unit sphere and is handy to calculate rotations in 3 spatial dimensions, here's the video that helped me a lot to understand how the math works in general: Īlso there is few simple practical hints: ![]() What is make Quaternion distinct form a Vector, is a special rules of multiplication that are applied to its imaginary parts. Quaternion is a 4-dimensional complex number that consists of real and imaginary parts. It is good to know what they mean though, so here are some Wikipedia links (unity quaternions, are, at the end of the day, just normalized quaternions): These quaternions are multiplied to do rotations (the order of multiplication is important).įor practical purposes, you are unlikely to need to modify the components directly, it would often be simpler to do the calculations in Euler and then convert to Quaternion. w, x, y and z are real numbers, to create a Quaternion: Quaternions exist in a system of mathematics where there are 3 imaginary numbers: i, j and k, each of which can be squared to get -1, and where ijk = -1 as well. The w component represents a rotation around the axis shown by the vector (x,y,z) in radians, anticlockwise, and is the real part of the number. X, y and z represent a normalized vector in 3d space and are 3 imaginary components of the quaternion. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |