Tagged Questions
-2
votes
0answers
23 views
Rotate object to face player touch [duplicate]
I need to make my sprite to face where the player have touched.
I tried like this:
public static double FaceObject(RectF position, RectF target)
{
return ...
2
votes
1answer
117 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 ...
1
vote
2answers
563 views
Matrix rotation of a rectangle to “face” a given point in 2d
Suppose you have a rectangle centered at point (0, 0) and now I want to rotate it such that it is facing the point (100, 100), how would I do this purely with matrix math?
To give some more specifics ...
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 ...
