C
C#2y ago
Cerius

❔ It don't work I'm a Unity beginner.

26 Replies
L-I-V-E-2DAY
L-I-V-E-2DAY2y ago
whats the error, thats a good place to start
Cerius
CeriusOP2y ago
Pobiega
Pobiega2y ago
so you can't just add them together
Cerius
CeriusOP2y ago
Cerius
CeriusOP2y ago
This?
clxs
clxs2y ago
You dont add quaternions, you multiply them
Cerius
CeriusOP2y ago
There is a GameObjects that holds a camera as a child.
Cattywampus
Cattywampus2y ago
yes, you multiply them...
Cerius
CeriusOP2y ago
What? It makes no sence? You can add Vectors why not Vector4(Quaternions)
clxs
clxs2y ago
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"
Cerius
CeriusOP2y ago
I see three values of a rotation x, y, z so it is a Vector3 not a Quaternion
clxs
clxs2y ago
So rotation = rotation * quat; will give you a rotation that's the result of rotation + quaternion
Cerius
CeriusOP2y ago
Thank you
clxs
clxs2y ago
That might be the editor simplifying it, but .rotation is a Quaternion instead of an eulerian rotaiton
Cerius
CeriusOP2y ago
Cerius
CeriusOP2y ago
It don't work again
L-I-V-E-2DAY
L-I-V-E-2DAY2y ago
again, instead of "It don't work" what is the actual error it is giving you it don't work tells us virtually nothing
Cerius
CeriusOP2y ago
Ok thank you It don't work.
clxs
clxs2y ago
What error does it give
Cerius
CeriusOP2y ago
Cerius
CeriusOP2y ago
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.
Cerius
CeriusOP2y ago
At rotation -180 it says -1 which makes no sence
Cerius
CeriusOP2y ago
I think you have to study maths to use Unity. It is too hard for hobbyists to use it.
Anton
Anton2y ago
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
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server