All Questions
Tagged with ogre quaternion
6 questions
4
votes
1
answer
738
views
Why game engines usually don't offer a vector3.rotate method? [closed]
Game engines like Three.js, Ogre3d and Unity3d often don't provide a default rotate method on their vector class. You usually have to do something like:
...
3
votes
1
answer
463
views
How to map absolute Joystick position to object rotation?
In my (Ogre) 3d scene I have an object that should be rotated locally based on Joystick input. I have a Joystick with min/max values of [-32767, 32767] on both X and Y axes. When the Joystick is in ...
3
votes
0
answers
561
views
Setting Orientation of Character in Bullet/Ogre [closed]
I've been suffering from an issue regarding the implementation of orienting characters in a game I'm implementing using Ogre3D and Bullet physics.
What I have: A Direction Vector that the character ...
2
votes
0
answers
882
views
Quaternion to direction vector - flipping
I've kinda solved this myself by adapting the Camera::setDirection code from OGRE to work for my need:
Now I have the following code:
...
2
votes
1
answer
875
views
How to set object's / node's absolute rotation correctly?
Usually when I want to rotate an object/node in my Ogre scene I call the node's rotate() method. That rotates the node locally relative to it's current rotation. So ...
0
votes
1
answer
809
views
2D vector to Quaternion
I have a 2D vector (with only X and Y), and my engine only supports orientation through Quaternions.
How do I translate a 2D vector to a quaternion?
The X and Y represent the direction (so X = 0 ...