The circular movement of an object around a specific axis.
0
votes
0answers
31 views
3D Box Collision Data Import
I'm trying to implement a collision system using oriented bounding boxes, using a center for the box, it's extents as a 3D Vector and a rotation matrix, which is all stuff I picked up online and seem ...
1
vote
1answer
54 views
Sprite rotation
I'm using OpenGL and people suggest using glRotate for sprite rotation, but I find that strange. My problem with it is that it rotates the whole matrix, which sort of screws up all my collision ...
5
votes
2answers
206 views
Slerping rotation mirrors
I rotate my game character to watch at the target using the following code:
transform.rotation = Quaternion.Slerp(startQuaternion, lookQuaternion, turningNormalizer*turningSpeed/10f)
...
0
votes
1answer
50 views
Rotating object along bezier curve: not rotating enough?
I tried to follow the instructions from the threads on the forum (Cocos2d rotating sprite while moving with CCBezierBy) with Unity, in order to rotate my object as it moves along a bezier curve. But ...
0
votes
0answers
64 views
JavaScript 3D space ship rotation
I am working with a fairly low-level JavaScript 3D API (not Three.js) which uses euler angles for rotation. In most cases, euler angles work quite well for doing things like aligning buildings, ...
3
votes
1answer
47 views
Keep cube spinning after fling
So I've been trying to get started with game development for Android using Unity3D. For my first project I've made a simple cube that you can spin using touch. For that I have the following code:
...
0
votes
0answers
11 views
How can I modify my code of Matrix to Euler Angle? [closed]
Graphics3D[{swordX[[1]], GeometricTransformation[swordX[[1]], transformationList = Table[Composition[RotationTransform[36 i Degree, {0, 0, 1}], RotationTransform[{{1, 0, 0}, {0, 0, ...
1
vote
0answers
19 views
How can I detect the order/type of Euler Angles system used in a game/movie editor
How can I detect the order and type of Euler Angles system used in a 3d game engine/movie editor?
I have no document, I can do experiments.
I detect Quaternions by Permute a quaternions to get 24 ...
0
votes
0answers
76 views
Drawing and rotating bitmaps (with transparency) efficiently in Android
I just started making a game for Android and I'm already having some issues regarding performance.
You can imagine the game as being some kind of Tower Defense game with a top-view, and the enemies ...
0
votes
1answer
44 views
How to rotate two scaled objects
I have two objects. The head and tail of a future "grapple". The head and tail always point in the same direction. However, when I tried using scaled rectangles (that were bigger/smaller than the ...
0
votes
1answer
89 views
How to draw a rotatable and zoomable sphere?
My game is a sort of business simulation game of Earth, and I want the main interface to be just like a google earth view. Is there a way to do this with built in OpenGL features or do I have to ...
1
vote
1answer
131 views
Correct rotation with Quaternion
I have some problems with a rotating marble.
I've tried it with Matrix.CreateFromYawPitchRoll and Matrix.CreateRotation but there were some problems, I think it's due to the Gimbal lock effect.
So, ...
0
votes
0answers
54 views
OpenTK (OpenGL) Rotation around fixed axes?
How would I go about rotating things in 3-dimensional space along fixed axes? As OpenTK only seems to have rotation that modifies the other rotation, as in
X affects Y & Z
Y affects Z
Z affects ...
3
votes
2answers
119 views
Using quaternions, how do I determine if an object is upside down from an original rotation?
Imagine this scenario: An object is laying flat on a horizontal surface, from this an original rotation is determined. Then the object is moved, and at some point flipped upside down and put back down ...
0
votes
0answers
28 views
camera panning problems with “modelviewer” camera
ok so I have a camera that rotates around a center point using a rotation matrix and radius for the zoom from the object. I need to add right mouse button panning in. Here is the problem when I change ...
0
votes
0answers
68 views
How do I ADD gravitation to a rotation matrix?
I have ported the Matlab script from https://instruct1.cit.cornell.edu/courses/bionb441/LSystem/ to POV-Ray and everything works fine (although I'm not quite sure why). To navigate a "turtle" through ...
2
votes
0answers
95 views
Use quaterions to move the camera direction according to mouse movement
I am trying to use quaterions to move the camera direction vector in the following way.
This code is perfectly working
glm::quat temp1 = glm::normalize( glm::quat((GLfloat)( ...
0
votes
2answers
98 views
Translate extrinsic rotations to intrinsic rotations ( Euler angles )
The problem I have is very frustrating:
I am using the Jitter Physics library which gives Quaternion rotations, you can extract the extrinsic rotations but I need intrinsic rotations to rotate in ...
1
vote
1answer
121 views
Need to translate a Rotation Matrix to Rotation y, x, z OpenGL & Jitter for 3D Game
I am using the Jitter Physics engine which gives a rotation matrix:
M11 M12 M13
M21 M22 M23
M21 M32 M33
And I need it so OpenGL can use it for rotation
GL.Rotate(xr, 1, 0, 0)
GL.Rotate(yr, 0, 1, ...
0
votes
1answer
81 views
Rotate image around a specified origin
I'm trying to rotate my Turret.png (small Gunhead with a laser in front) towards the mouses location on the screen. I tried just using my method for rotating projectiles towards the next step on their ...
0
votes
3answers
163 views
Unity3D Orbit around orbiting object (transform.RotateAround)
The best way to explain this is I'm attempting to make a small model solar system (not to scale or anything complicated, just simple rotation as a learning exercise). There's a sun, a planet, and that ...
1
vote
2answers
107 views
“Align” a rotation to a direction
Good day all.
I have a 3d object with a random rotation.
I can express that object's rotation both through a quaternion or through an euler rotation.
Then I have a vector3 normal that I get from a ...
-1
votes
1answer
69 views
Java moving image to where it is facing
I am trying to make an Asteroids type game.
I searched and tried everything to move an image along its angle (as radiant).
Using my knowledge of trigonometry I made the following calculation:
x += ...
0
votes
1answer
276 views
Rotate an object smoothly on the Y axis in Unity
I am attempting a simple script to swing a door open in Unity. This requires a smooth rotation of 90 degrees around the Y axis. I have seen that one way to do this is using Unity's Quanternion ...
0
votes
0answers
49 views
Tetris-like wall-kicking not working [duplicate]
So I'm making a falling-block puzzle game. It's not a Tetris clone, but the block clusters move in a similar fashion. I want to make it so that if you rotate against a wall, or against another ...
0
votes
1answer
89 views
Orbiting a camera around the Y axis whilst remaining up
I've been having difficulty with a problem which I thought was going to be a simple solution.
I have a camera facing downwards on a character. The can camera be lowered and when it's lowered it ...
0
votes
0answers
47 views
How do I find the rotation point given a touch anchor, new position and new rotation?
I've got an Cocos2d layer which anchorPoint, position and rotation (according to http://www.qcmat.com/understanding-anchorpoint-in-cocos2d/) vary when the pinch zoom gestures. Everything works fine.
...
0
votes
0answers
112 views
Direct3D Math, Yaw + Roll = Pitch?
I know this is an odd question, however I'm scripting for a game using DirectX9 and the only floating-point rotation 'functions' I have access to is Yaw(X) and Roll(Y) and I need the Pitch(Z)
The ...
0
votes
2answers
97 views
get the new vertices after rotating in JOGL
I had rotate an object with openGL (JOGL).
Is there a simply way how I can get the new vertices?
1
vote
1answer
59 views
Getting mousemovement despite mouselock - unity
I have lockcursor so the cursor doesn't leave the screen, but now i have to rotate an object based on mouse movement (think garrys mod item rotation) but the mouse cursor is obviusly locked to the ...