Linked Questions

2
votes
0answers
375 views

Solved OpenGL using quaternion to rotate camera to avoid gimbal lock [duplicate]

I read in many sources about using quaternion to avoid gimbal lock but I can't apply this practically in my code, so I have a camera class I want to rotate it with mouse so I have Euler angles Pitch ...
1
vote
0answers
250 views

OpenTK Camera Rotation issue [duplicate]

I'm currently developing a 3D game engine in C# using OpenTK. I have basic game objects, and each game object has transform (translation, rotation and scaling). A game object can have components (...
-1
votes
1answer
135 views

The rotation along z axis is not changing to zero? [duplicate]

Code: ...
0
votes
1answer
116 views

Why transform.Rotate(X,0,Z) rotates also Y? [duplicate]

In my game I'm trying to rotate a turret. I'm using the classic pattern: ...
0
votes
1answer
139 views

First-person shooter -style controls [duplicate]

This is not in regard to a video game, but to a 3D model viewer someone else created and I am modifying. I would like to implement first-person -style mouse and keyboard controls in the viewer, so ...
0
votes
0answers
32 views

Combining rotation (using Quaternion* Quaternion) doesn't work as expected [duplicate]

I have fragment of code that has to rotate the camera to the direction where my cursor is as below: float yaw = mouseSensitivity.x * Input.GetAxis("Mouse X"); float pitch = mouseSensitivity.y * -...
0
votes
0answers
22 views

Ortbit camera rotation multiplication order with quaternions? [duplicate]

So I switched my camera to use quaternions and the first thing I noticed is that things started to 'roll' even though I'm not using any roll values. I looked it up and I found that people suggest that ...
24
votes
2answers
5k views

Using Quaternions: What can I do with them? (without the maths)

I am a Game Developer and did not study Mathematics. So I only want to use Quaternions as a tool. And to be able to work with 3D rotation, it's necessary to use Quaternions (Or Matrixes, but let's ...
17
votes
4answers
7k views

How to keep my Quaternion-using FPS camera from tilting and messing up?

I am using an FPS-like camera, and it uses quaternions. But, whenever I try looking up and then sideways, it tilts, and sometimes it can turn upside down. How can I fix this?
2
votes
1answer
1k views

Quaternion rotation problems [duplicate]

I want to rotate my model and I have X and Y rotations. Here is my code: ...
1
vote
1answer
2k views

Unwanted roll when rotating camera with pitch and yaw

I have a quaternion class implementation, and when I apply this class to my objects all gone right (rotations), but I have a lot of troubles with the camera. I've been searching a lot trying to solved ...
3
votes
2answers
1k views

Quaternion based camera pitch freaking out, and Z-axis drift

This is the code I use to control my (first person) camera's movement and rotation. Translation successfully keeps orientation in mind, so that up and left and such are always in the expected ...
0
votes
2answers
1k views

Set rotation on single axis with provided angle using Quaternion

I am using a Quaternion to represent the rotation of some object, and I would like to allow the user to rotate it about a single axis at a time using textbox, so he would write the angle that the ...
0
votes
2answers
1k views

Lock Z axis from the gyroscope rotation

Here's the code I use. ...
0
votes
2answers
563 views

How can I separate gameview from UI most efficiently in Unity?

Let me provide an image to illustrate what I mean. It is from a game called Runescape.

15 30 50 per page