Questions tagged [rotate]
The rotate tag has no summary.
44 questions
0
votes
0
answers
49
views
How to rotate the "top" sky texture with Directx9?
I'm working on designing and animating the sky with a cubemap. The surfaces except for the "TOP" move in a way that follows each other. However, I could never figure out how to adapt the &...
0
votes
1
answer
103
views
LibGdx sprite isn't rotating correctly around its own axis
I'm currently trying to rotate a sprite around its own axis to make it "face" the mouse, but I'm having weird results. This is my code:
...
0
votes
1
answer
85
views
Rotate and Zoom a group of tiles
I'm working on a tile-based game and I'm trying to rotate my tiles as a group around the center of the screen and want to have the ability to zoom in and out. Here my code:
...
0
votes
0
answers
35
views
I am looking for a flexible way to rotate a gameobject around another
I try to make an object rotate around another object on mouse input. In order to achieve this I used this code:
...
0
votes
1
answer
118
views
How do you make Cube not instantly rotate upon Keypress in opposite direction?
I have this movement script on a Rigidbody cube with X,Y,Z Rotation Constraints.
It is working well to move and to rotate in the direction of the movement.
However, ...
-1
votes
1
answer
66
views
Rotating an object around a rotating object
Im trying to build a model for the solar system in OpenGl, and I got the planets to move around the sun, but can't get the satellites to move around their planet. I can't share my code since this an ...
0
votes
1
answer
214
views
What is the difference between the two circles in the rotation tool in Unity?
What is the difference between the two circles in the rotation tool in Unity?
In 2D rotation tool there are two circles which allow to rotate an object. And I can not conceive a difference between ...
0
votes
1
answer
561
views
OpenGL/C++ Rotate relative to shooting gun
I'm trying to make a 2D game where I have a gun that i use to shot things in the direction of the mouse resulting in an angle that I can get. I have some problems with the trajectory of the bullet ...
0
votes
1
answer
968
views
How do I calculate the x,y of the rectangle after rotating?
I'm using SDL2. I want to draw a textured rectangle and I'd like it rotated so I'm using SDL_RenderCopyEx. However SDL2 doesn't give me the option of repeating texture so I need to manually do it ...
6
votes
3
answers
3k
views
Rotation grid positions
I'm dealing with objects on 15x15 chunks in my game.
I'd like the chunks to rotate, for example, rotation version 0 is the original position of 2,5;
(EDIT: Oops, rotation 2 and 3 names need switching ...
2
votes
1
answer
212
views
Transform.Rotate is jumping around
Why is the parent that contains 4 children jumping around and then settling into a position instead of rotating once by 90 deg? I can't seem to get it to rotate a single time as expected.
...
1
vote
1
answer
89
views
Rotate Sprite in direction it is moving while beeing dragged
I am working on a 2D topdown game where you have cars you can drag around. you can touch any given car and move it around.
This kind of works but when I drag a curve the sprit of the car does not turn ...
3
votes
3
answers
616
views
How do I rotate a sphere so that a position on it comes to a specific location?
Sorry for my english. I added a picture to explain what i want.
I want rotate Big Sphere to make the black point locate in front of camera. (to the white point's position)
not black point moving, ...
0
votes
1
answer
91
views
After rotated by Z-axis, X/Y axis still rotating just like z is 0
I'm making aerial vehicle controller, which can rotate 3 axis: X(Pitch), Y(Yaw), Z(Roll).
Rotating x(pitch) and y(yaw) axis works fine, however after I rotated z(Roll) axis, x/y rotation gave me ...
-1
votes
1
answer
1k
views
How to rotate a point around a pivot by changing the axis
I've been stuck on this forever now because I don't understand math in the slightest and when people talk about matrices they just give the table and don't explain how to actually go through each step....