Tagged Questions
0
votes
3answers
61 views
Rotating each quad in a batch separately?
Background
In my app I use the following code to rotate my quad:
Code
//Rotate the quad
Matrix.setIdentityM(mRotationMatrix, 0);
Matrix.translateM(mRotationMatrix, 0, centreX, centreY, 0f);
...
0
votes
0answers
51 views
Understanding quaternions and axis angle representations [closed]
I have a sensor that gives me a quaternion. I convert the quaternion to an axis-angle representation using http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/. When I ...
0
votes
1answer
132 views
Rotation of Rectangle along Y-axis transformed to parallelogram
After the rotation of a rectangular view along the Y-axis, about its center, transformed into parallelogram, how do I get the rotated parallelogram coordinates?
By Y-axis, I mean perpendicular to the ...
2
votes
1answer
118 views
Difference between rotation methods?
My question is in about rotate methods in android.graphics.Camera. In Docs, I saw these comments:
public void rotateX (float deg) Since: API Level 1
Applies a rotation
transform around the X ...
0
votes
1answer
611 views
rotate sprite and shooting bullets from the end of a cannon [duplicate]
Possible Duplicate:
How to Align Gun with Bullets
Hi all i have a problem in my Andengine code,
I need , when I touch the screen, shoot a bullet from the cannon (in the same direction of ...
1
vote
1answer
465 views
Rotate triangle so that its tip points in the direction of the point on the screen that we last touched
OpenGL ES - Android.
Hello all, I am unable to rotate the triangle accordingly in such a way that its tip always points to my finger.
What i did : Constructed a triangle in by GL.GL_TRIANGLES. Added ...
0
votes
1answer
343 views
Joystick example problem for android 2D
I've searched all over the web for an answer to this, and there are simular topics but nothing works for me, and I have no Idea why. I just want to move my sprite using a joystick, since I'm useless ...
1
vote
2answers
2k views
Rotate canvas along its center based on user touch - Android
I want to rotate the canvas circularly on its center axis based on user touch.
i want to rotate based on center but its rotating based on top left corner .
so i am able to see only 1/4 for rotation ...
4
votes
4answers
2k 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 ...
2
votes
4answers
2k views
per pixel based collision detection
I was wondering if anyone had any ideas on how to get per pixel collision detection for the android. I saw that the andEngine has great collision detection on rotation as well but couldn't see where ...
6
votes
1answer
2k 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 ...
0
votes
1answer
842 views
rotate player based off of joystick
Hey everyone I have this game that i am making in android and I have a touch screen joystick that moves the player around based on the joysticks position. I cant figure out how to also get the player ...
