26 Replies
whats the error, thats a good place to start
so you can't just add them together
This?
You dont add quaternions, you multiply them
There is a GameObjects that holds a camera as a child.
yes, you multiply them...
What? It makes no sence?
You can add Vectors why not Vector4(Quaternions)
Quaternions don't represent a rotation in the way you're picture, a set of Eulerian rotations you're thinking of
They're much closer to a Matrix representing the transform of a point
And just like matricies, you multiply them to combine multiple of these "orders"
I see three values of a rotation x, y, z so it is a Vector3 not a Quaternion
So rotation = rotation * quat; will give you a rotation that's the result of rotation + quaternion
Thank you
That might be the editor simplifying it, but .rotation is a Quaternion instead of an eulerian rotaiton
It don't work again
again, instead of "It don't work" what is the actual error it is giving you
it don't work tells us virtually nothing
Ok thank you
It don't work.
What error does it give
I actually want that I can control the camera with the mouse.
Camera Pivot Point manipulate Y and Z axis with mouse and with a lerp.
This is possible if you are in the outside camera mode and you can change the mode with the C key.
I want that the center of the mouse position on screen and press right click. the y axis doesn't change but if I move the mouse to the right, it chances the y rotation of the camera positive and at the other side negative. This is what I want try to implement.
At rotation -180 it says -1 which makes no sence
I think you have to study maths to use Unity. It is too hard for hobbyists to use it.
you can create quaternions from euler angles
that's probably what you're looking for
euler angles are the rotations about each of the axes
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.