C
C#14mo ago
Cerius

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

26 Replies
L-I-V-E-2DAY
L-I-V-E-2DAY14mo ago
whats the error, thats a good place to start
Cerius
Cerius14mo ago
Pobiega
Pobiega14mo ago
so you can't just add them together
Cerius
Cerius14mo ago
Cerius
Cerius14mo ago
This?
clxs
clxs14mo ago
You dont add quaternions, you multiply them
Cerius
Cerius14mo ago
There is a GameObjects that holds a camera as a child.
Cattywampus
Cattywampus14mo ago
yes, you multiply them...
Cerius
Cerius14mo ago
What? It makes no sence? You can add Vectors why not Vector4(Quaternions)
clxs
clxs14mo 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
Cerius14mo ago
I see three values of a rotation x, y, z so it is a Vector3 not a Quaternion
clxs
clxs14mo ago
So rotation = rotation * quat; will give you a rotation that's the result of rotation + quaternion
Cerius
Cerius14mo ago
Thank you
clxs
clxs14mo ago
That might be the editor simplifying it, but .rotation is a Quaternion instead of an eulerian rotaiton
Cerius
Cerius14mo ago
Cerius
Cerius14mo ago
It don't work again
L-I-V-E-2DAY
L-I-V-E-2DAY14mo 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
Cerius14mo ago
Ok thank you It don't work.
clxs
clxs14mo ago
What error does it give
Cerius
Cerius14mo ago
Cerius
Cerius14mo 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
Cerius14mo ago
At rotation -180 it says -1 which makes no sence
Cerius
Cerius14mo ago
I think you have to study maths to use Unity. It is too hard for hobbyists to use it.
Anton
Anton14mo 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
Accord14mo 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
More Posts
❔ RequestSizeLimit on Actions not Working!I have an action that is uploading a large file. The file size is 189mb. For some reason I'm getting❔ How can I solve this error "does not exist in current context" in C#?I am stuck with this error. I have attached images. Will kindly request if someone can guide me wher✅ WASM project running on local networkNot sure if this really a C# thing, but maybe someone has done this before. We have a Net7 Blazor WA❔ Need help with WFP softwareIm trying to make a map location softoware using google's API. When I embed google maps on my webro❔ question about console app host.RunAsync();In this example: https://learn.microsoft.com/en-us/dotnet/core/extensions/logging-providers using M❔ Entity Framework + Docker sql server on ubuntuthe error A connection was successfully established with the server, but then an error occurred du❔ Need help with LunarVim Nerd Font IconsI'm using JetBrainsMono Nerd Font from nerdfonts.com, but they removed the icon for C#, and im tryin❔ How would I start learning C#?I want to start learning C# for unity programming, and I have a general idea of to code, but have no❔ How do I prevent access to a web server (web api application) from certain clients?I have a web api running on azure. I also have 2 clients, 1 android app and 1 ios app. The client us❔ How do I disable live/realtime linting in VS Code with the C# extension?I'm new to using VS Code (and C#). I installed the C# extension and there is linting while I type an