Tagged Questions
The circular movement of an object around a specific axis.
9
votes
2answers
233 views
Calculating the rotational force of a 2D sprite
I am wondering if someone has an elegant way of calculating the following scenario.
I have an object of (n) number of squares, random shapes, but we will pretend they are all rectangles.
We are ...
7
votes
2answers
327 views
How can I rotate about an arbitrary point in 3D (instead of the origin)?
I have some models that I want to rotate using quaternions in the normal manner, except instead of rotation about the origin, I want it to be offset slightly. I know that you don't say, in 3d space, ...
7
votes
4answers
326 views
How to rotate blocks in tetris
I have a gameboard grid which is 20 rows high and 10 columns wide with the origin (0,0) being in the top left hand corner.
I have a tetrimino in play, which is composed of four blocks.
I have the x,y ...
7
votes
3answers
258 views
Can I use quaternions to control an helicopter?
I'm trying to make a simplified helicopter (for the moment, it's a cube) simulation in 3D and I'm having some problems with rotation. An helicopter can rotate along the three axes :
rotate on itself ...
5
votes
1answer
312 views
How do I rotate a structure of hexagonal tiles on a hexagonal grid?
My 2D isometric game uses a hexagonal grid map. In reference to the image below, how do I rotate the light blue hexagon structures by 60 degrees around the pink hexagons?
EDIT:
Main hex is (0,0). ...
5
votes
2answers
380 views
What is eigenvalue decomposition and why would it be useful in games?
In various math libraries developed for game engines, I see 2x2 and 3x3 square matrices having this function (along with some helper functions). I tried to find information regarding it but did not ...
5
votes
1answer
880 views
Rotation of bitmap using a frame by frame animation
I have one large bitmap that has four frames drawn on it and I only draw one at a time by looping through the bitmap by increments to animate walking. I can get the bitmap to rotate correctly when it ...
4
votes
3answers
236 views
Why is my model's scale changing after rotating it?
I have just started a simple flight simulator and have implemented Roll and pitch. In the beginning, testing went very well; however, after about 15-20 seconds of constantly moving the thumbsticks in ...
4
votes
2answers
157 views
AABB of rotated sprite?
Say I have a sprite. Its AABB is easy to find since I know the width and height. Say I rotate it 45 degrees, I don't think the AABB would be big enough to cover it, so I need a new AABB. How can I ...
3
votes
1answer
277 views
Turning a sprite such that it rotates in the direction that's most efficient
I have a sprite that moves from waypoint to waypoint. It turns to face its velocity vector, but not instantly (there's a rotation speed).
The problem I'm having is, from one direction to another, the ...
3
votes
4answers
513 views
GLM: Euler Angles to Quaternion
I hope you know GL Mathematics (GLM) because I've got a problem, I can not break:
I have a set of Eular Angles and I need to perform smooth interpolation between them. The best way is converting them ...
3
votes
3answers
728 views
Need a good quality bitmap rotation algorithm for Android
I am creating a kaleidoscopic effect on an android tablet. I am using the code below to rotate a slice of an image, but as you can see in the image when rotating a bitmap 60 degrees it distorts it ...
3
votes
3answers
1k views
Camera Rotation using angles
I currently try to rotate a camera (using gluLookAt()) around a point , i successfully do it for rotating around one global axis.
But when i want to use more than one axis , I'm stuck . I've ...
3
votes
6answers
974 views
How to get quality sprite sheet generation with rotations
I'm working on a game that uses sprite sheets with rotation for animations. While the effect is pretty good, the quality of the rotations is somewhat lacking. I exported a flash animation to png ...
2
votes
3answers
138 views
Bounding box of a rotated rectangle (2d)
I can see this has been asked before in various ways. I am struggling to work it out though hence asking again.
2d sprite that moves and rotates. I'm looking to contain it in a bounding box as it ...