Rotation is the circular movement of an object around a specific axis.

learn more… | top users | synonyms

1
vote
0answers
30 views

Rotation 2d top-down view in 3d game

I have a game in top-down view, with little ants who can walk up/down, left/right and diagonal (and all direction with Joystick). My little player can move, but I can't rotate it properly... See what ...
0
votes
0answers
34 views

Handling knockback in a topdown isometric game

So I'm making a topdown isometric roguelike game, and in my game you can hit enemies with a variety of swords. The sword points toward your mouse, so it's always at a certain angle, and when you click ...
0
votes
0answers
12 views

Android ROTATION_VECTOR yaw doesn't work properly

I wanted to do get the rotation on the x, y and z axis, and I managed to get x and z working (pitch and roll), but not the y axis (yaw). It only goes around 180 degrees, then it almost immedialitely ...
1
vote
1answer
48 views

Why isn't my rotation smooth?

I'm currently working on a twin stick shooter but I encountered a problem when I rotate my player. The rotation snaps to right angles. I'm guessing it's a problem, due to the value that the joystick ...
3
votes
1answer
67 views

I'm rotating an object on two axes, so why does it keep twisting around the third axis?

I see questions come up quite often that have this underlying issue, but they're all caught up in the particulars of a given feature or tool. Here's an attempt to create a canonical answer we can ...
1
vote
0answers
47 views

Transform.Rotate() rotation about one axis also rotates about the other axes [duplicate]

i'm new to learning unity and infact game development.Below i have setup a scene to learn about unity and i have encountered a strange problem that doesn't comply with anything that unity has ...
0
votes
1answer
22 views

Align Players Rotation

I'm currently working on rope Swinging. The Rope consists of Physics Constraints/Joints and between them the rope is rendered. I would like align my Character's Pitch to the Rope. I'm horribly bad ...
1
vote
0answers
23 views

Ribbon trails on a rolling pawn (rotate on roll and yaw, without pitch)

I'm trying to recreate a Metroid Prime morph ball type of trail on a rolling pawn. I've got the pawn rolling around just fine, but I'm having trouble getting the ribbon trail to work properly. ...
0
votes
1answer
35 views

Unity transform.rotation not giving real value

i confused , when the object is at 0 rotation ( not rotated yet ) , it giving real value ( 0 ) , but when the object is rotated 180 degree , transform.rotation is giving false value ( 1 ) , this is ...
0
votes
1answer
28 views

How to control a 2d charter in an top-down android game with the standard joystick?

So I'm building a 2d top-down game and I need to control my character using unity cross-platform standard asset single joystick. The problem is with the rotation, I don't want to use the dual-stick ...
0
votes
2answers
65 views

How to make a spaceship auto level while in orbit

I’m trying to make a ship auto level so that the belly of the ship stays facing the planet. I found the answer in 2.5D*, but I can’t get it to work in 3D. //world rotation * up Vector3f spatialY = ...
0
votes
1answer
21 views

Help with Transform Path

I have a 2D square. It has an initial position translation T0. It rotates about the Z axis, about an arbitrary point, say 45 degrees, then moves (translates) along the +X axis some distance. I'm ...
1
vote
0answers
107 views

Why is my 2D mouse aim not working properly?

I'm trying to program 2D mouse aim, where the arms and the gun in the arms rotates to point at the mouse. But for some reason, the arms and gun rotate and do not follow the mouse position. The each ...
7
votes
2answers
346 views

How can I rotate pixel art sprites without the aesthetics getting ruined?

I'm right now in front of a huge "Game Design" question. I'm making a pixel-art-ish game and using bilinear interpolation could solve lots of animation-issues. On the other hand, its not a "pixel-game"...
0
votes
0answers
44 views

Transform class and gimbal lock

I am facing gimbal lock in my Rubik Cube program (opengl3.3+glm). I am using my own Transform class which is implemented this way: class Transform{ private: glm::vec3 position, rotation, scale; ...
0
votes
0answers
26 views

How do I rotate images/sprites I am using with webgl? Is this supported?

I would like to import a few sprites the the screen, in the browser using html/webgl. I already know how to do this. Then, once they are on the screen I would like to manipulate them with the keyboard....
0
votes
0answers
25 views

How to apply yaw, pitch, roll all locally?

I want to make a rotation matrix from yaw, pitch, roll all locally. By all locally I mean first apply the yaw rotation, then in the new local coord apply pitch rotation, then roll rotation finally. ...
0
votes
2answers
58 views

Opengl rotate around global axis

I want to create a game in which i rotate a cube around 2 fixed axes(x and y) using my mouse. Here is what i want to do. Just use the mouse to see what kind of rotation i want : http://mypuzzle.org/3d-...
0
votes
0answers
70 views

Rotating an object around it's centre in OpenGL

I'm writing small 3d viewer of models from .obj file. I have a car and I want to rotate car's wheels. I found a lot of good examples but I still have a problem: wheel rotates around point at the it's ...
0
votes
0answers
74 views

How to draw projectile arc between point A and point B

I don't need any physics computations. I just need to draw a parabola between two points in 3D. I have already drawn a simple example from point A: for (float param = 1; param < 3000; param += 2) ...
22
votes
3answers
2k views

How can I rotate an object based on another's offset to it?

I have a 3D model of a turret that con rotate around the Y-axis. This turret has a cannon that is significantly off the center of the object. I want the cannon, not the turret, to aim at a specified ...
0
votes
0answers
11 views

Mouse location is off due to Camera in Java slick2d

So I'm building a 2D top down shooter but I have a little issue with my camera and mouse. When I add the camera that I use to my game my mouse seems to stay in the first rendered part of the map(in my ...
0
votes
1answer
25 views

How to rotate a surface in pygame, without changing its shape

I'm writing a class in pygame to create a sprite object, and I'd like to be able to rotate it. It works fine with an image, and rotates without issue. But when rotating a surface with a plain colour, ...
-1
votes
0answers
31 views

(Unity C#) Rotating an object over time to a RaycastHit.point vector

I am trying to rotate a game object (a weapon) to point towards where the centre of the player camera is focused. I am raycasting forward from the centre of the camera (centreCast) and also from the ...
0
votes
2answers
56 views

Rotating Object parallel to other object

I try to rotate objects in the same direction as a reference object. Normaly this would be easy: object1.rotation = reference.rotation But the same rotation can be expressed with different ...
0
votes
2answers
57 views

Unity - Stuttering character rotation

Am working on the controls and camera movement for my character. What I am trying to do is have the character head be able to rotate left and right and then when the head is rotated a certain amount, ...
0
votes
2answers
71 views

Control Camera with gyroscope and place a gameobject always in front of it

Actually I have came here after searching from past 5-6 hours. Actually I am making a small game in which I have a camera and a gameobject. The Game Object is place in the center of the scene at 0,0,0 ...
23
votes
2answers
3k views

Using Quaternions: What can I do with them? (without the maths)

I am a Game Developer and did not study Mathematics. So I only want to use Quaternions as a tool. And to be able to work with 3D rotation, it's necessary to use Quaternions (Or Matrixes, but let's ...
0
votes
2answers
34 views

Convert linear velocity to angular velocity for a ball / sphere (Rolling Ball Maths)

I have a ball moving on a flat plane. I cannot use RigidBody physics, so my object in Kinematic and I am manually handling speed/acceleration. The linear movement of the ball is fine, however as the ...
0
votes
2answers
24 views

How to work out the height of a point on a tilted surface?

I have a plane which gets tilted on the X and Z axis (y+ is the normal). Given an X and Z coordinate and the X and Z rotation of the plane, how do I find out the height (Y) at that point? I assume ...
0
votes
0answers
12 views

Calculation of momentum and angular momentum after a kinetic impulse at a certain location

In a space game, how does one calculate the rotation and velocity of a craft, after it got affected by a kinetic impulse. I've drawn a sketch to illustrate my problem. The kinetic impulse could be a ...
1
vote
2answers
124 views

Unity / Rotate a point around an arbitrary axis and anchor

I'm trying to find out the point which is already rotated. To solve this I did a Rotation, save the position, set the previous position and return my position, like this: Vector3 ...
1
vote
1answer
64 views

Rotate a Crosshair around a sprite - 2d worms style game?? (LibGDX)

I'm currently learning to code 2d games in Libgdx. Right now I'm making a kind of worms clone. I am using Box2d and have just my main sprite and a flat ground object so far. What im stuck on is ...
0
votes
1answer
72 views

How is a gimbal connected with Euler rotation angles?

When I see any video that explains how gimbal lock occurs, they explain it using a gimbal machine and I totally understand the effect on that machine. What I don't understand is how Euler angles are ...
0
votes
1answer
30 views

How to rotate to look at target

I have found other questions like this, but none seem to quite cover the situation I have. I am using DirectX 11 I have an object that has: Position (vector) Rotation (quaternion) View angle (pitch,...
0
votes
1answer
39 views

Wierd behaviour upon limiting rotation on Y-axis

Okay, this is the code that works for a FPS camera, except it allows the player to flip it over by going under/over -/+90° rotation on Y-axis: transformation->rotateObjectFromRight(glm::radians(...
0
votes
0answers
33 views

Reconstructing 3D Rotation from 8 byte - Assistence required

I am currently trying to load 3D models and animations into a program. The file format has no public description, so I am decoding them piece by piece. (I'm studying computer science and it's for ...
0
votes
4answers
56 views

Specify the center of rotation in Unity

I want to rotate my game object around a point in the space instead of the origin, so how can I do it ?
0
votes
1answer
12 views

How to spin Imported FBX model 360* in unity3d

I have been trying to spin my imported wheel from blender 360* but when I do it, it doesn't rotate on the center (on one spot). I'm using C#. I have tried this: transform.Rotate(Vector3.forward, 5f -...
0
votes
0answers
32 views

Quaternion precision problems

Each entity and camera have a Transformation object that holds position info as vec3, rotation info as quat and scale info as vec3. When I need a matrix (that being either model or view matrix), I ...
0
votes
1answer
71 views

Making my pipes face the correct direction

I am trying to dynamically generate a pipping system. I am using a very specific way to connect the pipes after generating them. The forward has to be pointing at the next pipe and the right has to be ...
-1
votes
1answer
98 views

Does Game Maker use use intrinsic or extrinsic rotations?

I have a pretty difficult problem on my hands. My 3D character moves through space and rotates. I do not know the angle of rotation at any given time, but I do have three X, Y, Z unit vectors serving ...
1
vote
1answer
39 views

Project 3d lines onto plane

I'm trying to wrap my head around coordinate projection, and can't seem to solve the problem I am having. Here is an illustration of it: The cubes represent 3d space, and the 2 red lines represent ...
0
votes
1answer
38 views

Roll a 6DOF camera to a plane direction

I've been working on a 6DOF camera that I want to be able to "align" to any walls orientation to make it feel like I'm standing on that wall. I'm thinking it's a simple matter of finding the right ...
2
votes
1answer
37 views

Box2D body rotation problem

When my player jumps, I start a rotation and I want to finish it when he gets back on the ground. My Player is jumping off the ground and landing back on in 1 second. My physics are updating at 10 ...
0
votes
1answer
28 views

How to convert applied torque or angular velocity angle to a positive 0 - 360 degree?

Objective To convert body.getAngle() to 4 direction (NSEW), when torque or angularvelocity is used Because box2d body default angle is zero, I used it as reference to create my character direction. ...
0
votes
0answers
18 views

Adjust Object Velocity depending on Rotation

I am building a vehicle handling line in hyperPad, with no luck. I have a "gas pedal", and the vehicle. I can use add, subtract, multiply, divide, mod, get Rotation, get Velocity and set Velocity. ...
0
votes
2answers
83 views

libGDX - How to rotate with a specific duration

I want to rotate my player to 90° for a specific duration. I know scene2d provides this, but I don't want to use it for my players. With how much to rotate every frame, so after x seconds the ...
1
vote
1answer
43 views

Rotation smoothing with Slerp snaps to center when switching between different destination vectors

I'm making a 3D space shooter in Unity (think Star Fox). The ship, when I move it around the map, should rotate slightly (smoothly) in the direction I'm controlling it. I have smoothness mostly ...
1
vote
1answer
53 views

AS3 move object to a point

I'm trying to make a room full of monster each side and the player stay in the middle. I have a problem, I don't know how I move each monster to the player and rotate each of them to face the player, ...