Skip to main content

Questions tagged [rotate]

0 votes
0 answers
49 views

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 &...
cvaqabond's user avatar
0 votes
1 answer
103 views

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: ...
Jax's user avatar
  • 474
0 votes
1 answer
85 views

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: ...
Canox's user avatar
  • 113
0 votes
0 answers
35 views

I try to make an object rotate around another object on mouse input. In order to achieve this I used this code: ...
Paul Berta's user avatar
0 votes
1 answer
118 views

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, ...
Max's user avatar
  • 11
-1 votes
1 answer
66 views

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 ...
Tudor Popica's user avatar
0 votes
1 answer
214 views

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 ...
some1 here's user avatar
0 votes
1 answer
561 views

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 ...
NeedHelpFast's user avatar
0 votes
1 answer
968 views

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 ...
Eric Stotch's user avatar
6 votes
3 answers
3k views

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 ...
Mushington's user avatar
2 votes
1 answer
212 views

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. ...
mavish's user avatar
  • 151
1 vote
1 answer
89 views

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 ...
KonMos's user avatar
  • 11
3 votes
3 answers
616 views

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, ...
Hree's user avatar
  • 125
0 votes
1 answer
91 views

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 ...
modernator's user avatar
  • 1,223
-1 votes
1 answer
1k views

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....
fong monkey's user avatar

15 30 50 per page