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
83
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
1
answer
116
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, ...
0
votes
1
answer
212
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
964
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 ...
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.
...
3
votes
3
answers
615
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, ...
-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....
0
votes
1
answer
172
views
smooth look at only on x and y
i'm using the script down below to make my camera look at mouse x and y position, and it has a limitation for my camera rotation.the problem is the way my camera rotates is not smooth at all.is there ...
0
votes
0
answers
76
views
Rotate a Vector by Quaternions
I'm trying how to work out how to Rotate a Vertex using Quaternions, using a scientific calculator, or on paper. Exam preparation.
My lecturer has given us this;
Quaternion = (-0.5, 0, -0.7071067, 0....
0
votes
1
answer
57
views
Rotate player to vector3 point?
I want my player object rotate to face vector3 point on terrain.
...
0
votes
2
answers
1k
views
How to rotate object just like in the scene?
Look at this image, I selected an object and pivot is set to local:
When I rotated selected object in the scene by X axis, it rotates exactly I wanted.
But if I rotate axis from inspector or script, ...
0
votes
1
answer
166
views
How do you rotate RigidBody2D along a given access using velocity and not transform?
I am trying to rotate my player along the centre of the world in Unity3D.
All the tutorials and references I have looked through till now have left me to this working code:
...
0
votes
2
answers
1k
views
Rotate camera around point of view
I'm trying to rotate the camera around the view point of the camera. So when the user looks at a build the camera rotate around that building. But the camera does not need to have the building to ...
0
votes
3
answers
1k
views
Limit rotation to certain angles for transform.rotate
I'm working on a small project to learn Blender and Unity, and one issue I recently came across is that while I can have the turret of my tank rotate on the z-axis based on mouse movements, I can't ...
0
votes
1
answer
132
views
Player Controller not working with rotation?
I have created a player character controller. It rotates first time good but not after rotate to its original position before rotation. I am sharing code with you so any one can help me, How can I ...
1
vote
1
answer
1k
views
why the camera won't rotate around my object?
im new to unity scripting, and now am building upon "Roll a Ball" example in unity training. I wanted to make the camera rotate around the ball in the scene in Y axis, when mouse is moved, and watched ...
0
votes
1
answer
222
views
how to naturally rotate a ball according to its velocity on a surface, a wall
I develop a game on cocos2d-x cpp. There is a ball sprite in my game. I move the ball on a surface(wall) via touch events but it can't naturally rotate according to its velocity.
if i use ballSprite->...
1
vote
0
answers
66
views
Can I "Pre-rotate" VBOs while loading them in LWJGL?
It is possible to flip VBOs horizontally and vertically by swapping around destination coordinates.
Is it possible to rotate an image by any angle, such as 45 degrees, using different destination ...
-2
votes
1
answer
1k
views
how to rotate a sphere around centre (x y z) [duplicate]
I have centre of sphere at x y z. now I want to rotate any point (a b c) on the sphere about centre. how can I do it in c++.
2
votes
2
answers
1k
views
Making a cube slowly rotate 180 degress one time on a mouseclick
I am new to C# and new to Unity. I made a script that can turn a cube slowly one time after a mouse click but I feel like its probably wrong for using FixedUpdate. Is this OK or is there a better way? ...
0
votes
1
answer
1k
views
Rotating an image in Python
So I am making an "Asteroids" like game and I can principally get my sprites image to rotate but when I do, the image gets kinda torn apart. This is the method I am using for rotation. Any help would ...