Rotation is the circular movement of an object around a specific axis.
0
votes
1answer
30 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 ...
1
vote
1answer
16 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
21 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
11 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
37 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
19 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
0answers
28 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, ...
1
vote
1answer
62 views
Rotating a circle on its axis
I have a circular shape object, which I want to rotate like a fan along it's own axis.
I can change the rotation in any direction i.e. dx, dy, dz using my transformation matrix.
The following it's ...
1
vote
0answers
42 views
How to Rotate a Circle Around Its Own Midpoint
I have rendered a circle using OBJ file. Now I want to rotate it around its own axis, like YouTube buffering icon. How can I do that? I'm working in OpenGL.
I can change its x, y, and z rotation ...
1
vote
0answers
31 views
how to properly rotate in directX11
I am trying to Rotate a textured quad in directX however I think i am missing something. I am pretty sure it is because i am applying transformations to the WorldMatrix instead of the ObjectWorld, ...
0
votes
1answer
37 views
Rotating pitch and yaw causes roll
So I'm new to working with a 3D space and not sure how to fix my problem, I basically have a turret that rotates along its Z axis, and pitches along it's Y but after rotating 180 on the Z axis the ...
1
vote
1answer
31 views
Why does the box rotate, spin instead of gliding?
I've just learned that if I want to move an object so it acts depending of physics, I need to use rigidbody.velocity instead of transform.Translate. When I was using transform.Translate the box glided ...
0
votes
1answer
21 views
Adjust Line Renderer start position to follow bone rotation
I'm trying to make my first game in Unity and I want a line renderer to draw from the end of a turret's gun barrel. The problem is I'm rotating 2 bones in the turret to make it look at the enemy. I've ...
0
votes
1answer
41 views
Rotate bone on 1 axis to look at another object - Unity 3D
I'm new to game development and I'm trying to create a basic 3D Tower Defence game as my first project. I've created a basic turret in Blender and I'm now trying to rotate 2 different bones to make ...
0
votes
1answer
27 views
(Unity 5) Force child object to be perpendicular to the ground?
As i mentioned in the header, i want my MainCamera child object to stay perpendicular to the ground, any ideas?)
0
votes
0answers
23 views
Strange Rigidbody Rotation
I'm trying to build a basic rigidbody physic engine with the book "Game Physics Engine Development" by Ian Millington. I noticed there are a lot of mistakes and differences between his descriptions ...
1
vote
1answer
67 views
Sprite rotation: is it better to rotate with a quaternion or via sprite swap?
Considering this question:
"In a generic game engine where you have an object sprite (e.g. Unity), is it better (in terms of performance) to implement a clockwise rotation calculating at each frame ...
1
vote
1answer
54 views
LibGDX: How to make something like vector rotation sensor with accelerometer and compass values?
So I've tried the vector rotation sensor using the Android API and it works perfectly to do what I want, but LibGDX does not support this sensor. I've been searching and it seems like I can do the ...
1
vote
1answer
87 views
Camera rotation in 4D
What practical choices do I have in order to rotate a camera in 4D space? I would like to make it as intuitive as possible.
A camera in 3D space can be represented by
a point where it is located
the ...
5
votes
2answers
108 views
How to rotate actors around the actor like a satellite around the earth?
I'm not a pro in LibGDX and physics but I know basics, vectors, actor's actions and so.
I'm trying to achieve a movement like on the gif below:
For now, let's say that I have a stage and a central ...
0
votes
1answer
102 views
What type of rotation is this and how do I apply it?
I'm developing a 3D game in Java using LWJGL and JOML. In order to simplify player and NPC coding, I'm representing their orientation as two scalar quantities: "direction" and "angle" (maybe not the ...
0
votes
2answers
59 views
Why won't character stay at the x-axis rotation I set In the inspector?
Here is a snippet of my Update function, which contains everything regarding my rotations for the character:
// Higher the Z float, the LESS of a rotation when moving
Vector3 v3 = new Vector3 (Input....
1
vote
1answer
109 views
How to orbit an object around another object in an oval path in Unity?
I would like to create kind of planetary orbit structure for my game. I was used transform.RotateAround(Vector3.zero, Vector3.forward, RotationAngle * Time.deltaTime); and it rotates in a circular ...
0
votes
0answers
92 views
How to rotate a gizmo cube between two waypoints?
I have been struggling with this for a while, and I can't find a solution on the internet.
I am making a waypoint system with the Unity editor tools with Gizmos. Cars, boats, people will follow a ...
1
vote
1answer
62 views
Clamp camera view angles relative to moving object
I have a camera attached to an entity that moves in a circular pattern around a fixed center position. I am attempting to clamp the rotation of the camera such that it can only look inward toward the ...
0
votes
1answer
37 views
Understanding SpriteBatch.Draw overload XNA
I'm talking about the
public void Draw (Texture2D texture, Vector2 position, Nullable sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)...
0
votes
1answer
51 views
Using Quaternions to rotate a player towards a point
I am attempting to solve a problem involving Quaternions and 3D rotation.
I am using a games engine (Torque 3D) for a project that I am developing. I have modified the gravity system so that the ...
0
votes
1answer
69 views
How to Replace two object by rotating in center
I created Find Rock game but I have problem In replacing two object by rotating in center and when rotating finish stop rotating how can I do this?
using UnityEngine;
using System.Collections;
...
0
votes
1answer
43 views
Unity's animation system is flipping out. Rotates only the long way around
I really dont know what is going on or how to even explain the problem so I made a gif. Its not a really well made gif so please bare with it.
0
votes
2answers
54 views
Rotate character 180 degrees determine direction
In my game it should be possible to rotate the character 180 degrees. I always want the character to rotate clockwise.
If the character is rotated 0 degrees and I press the rotate button, the ...
4
votes
1answer
80 views
How to make one 3D object face another?
I'm writing a simple 3D engine myself and I cannot figure out how to make one object face another. The problem begins with identifying which direction the target object is in relation to the second. ...
1
vote
1answer
81 views
Unity Rotation - Object is rotating on Z, but should be rotating on X
I've been working on a project where I have a cube. When swiped left, the cube will rotate 90 degrees the left, and then when swiped right, the cube will rotate 90 degrees to the right. I have this ...
1
vote
0answers
46 views
Fixing wave-like movements when rotating an object using mouse input in Unity
I have encountered a rather odd issue with my program.
The setup:
In my scene, I have a GameObject which I have set as my player/character for this game. The player/character has a child GameObject, ...
1
vote
2answers
63 views
Rotate directly towards a target at a constant speed
I've written a program (see on JS Fiddle) that rotates my player towards the mouse cursor at a constant speed. I've computed the angle to the point using the Math.atan2 function, but when incrementing ...
1
vote
0answers
72 views
Moving along the surface of a mesh?
I'm trying to replicate the movement in this game: https://www.youtube.com/watch?v=OcvD8BXars8
The players ship along with all other game elements move along the surface of a mesh.
I've tried ...
0
votes
0answers
14 views
Cocos2d How to get Smooth rotation of sprite when using Sprite->setRotation()
i have simple round circle joystick when i move the thomp on the circle joystick it moves simple sprite
so when i get for example 40 Degress in the joystick i set the sprite setRotation(40)
all this ...
1
vote
2answers
29 views
What is a good practice for deciding when to use transforms instead of applying force?
I was making several games. I don't understand when I should use addTorque instead of rotate.
AddForce instead of position
The latest game was a pinball game. I wasn't sure the best way to active ...
1
vote
1answer
84 views
Check collision between two rectangles - libGDX
I'm making a game in which the objective is to collect the maximum amount of balls(Rectangle) to get the highest score. The balls spawn randomly from the middle of every side of your smartphone, and ...
3
votes
1answer
95 views
How to correct this issue with a top-down aiming angle in Unity - 2D?
I'm trying to build my first project and I'd like some input for a math correction. The game is a top down 2D shooter, a bit like the iconic "chaos engine" from SNES.
The issue is that either the ...
0
votes
0answers
18 views
camera rotation animation problem
I would like to create a 3d person rotation where the camera rotates to the character rotation(follow camera which orbits around the character). It might be possible that the character rotation ...
0
votes
0answers
39 views
Position camera in opengl
I have a camera with a 3D vector that represent the position and a quaternion that represent the camera orientation. I'm trying to rotate and orientate the camera correctly, but I can't. I know that ...
0
votes
1answer
61 views
How to calculate a simple swivel rotation? (no physics engine)
Assuming i know the geometry and the rotation angle of a cart, how can i calculate the rotation angle of a swiveling wheel?
To get the rotation angle of the wheel, i tried by calculating the distance ...
0
votes
0answers
22 views
Rotating a UI arrow according to the change in camera's rotation
I have been trying different alternatives to do what is a very basic thing but I couldn't have any success.
What I want to do is this. I have a 2D UI sprite at the screen, formed by 2 triangles, with ...
0
votes
0answers
42 views
Rotate camera with quaternions
I have a camera with a 3D vector, the position, and a quaternion, the orientation.
I'm able to move the camera in a realistic way (respect the local axis) but I can't do the same with the rotation. ...
2
votes
1answer
49 views
2d vector flips during rotation
I have a 2d game (C++ and SDL) and I want the player object rotate to follow the mouse. The player object and the mouse location are both stored in 2d vectors.
In order to have the player's rotation ...
0
votes
0answers
263 views
How do I rotate enemies on NavMesh in Unity?
I have a NavMesh Script for my enemy but it just looks into my direction and if I run around him he is still looking in one direction and not turning and facing me, how can I rotate him in the script ...
1
vote
4answers
144 views
How can I min-max quaternions?
What I'm doing
In my engine, I'm trying to implement a camera that will follow a target object, such as a player.
I wanted to avoid just simply using the inverse of the target's transformation, ...
0
votes
1answer
123 views
Problem with Quaternions and Unity's Euler Angle Convention
So I want to rotate an UI-Element according to my magneticHeading, I just want to apply the magnetic heading to the z rotation in EulerAngles. So I tried to do so, which brought me to some weird ...
1
vote
0answers
59 views
Rotation of a point around axis using quaternions
I have a simple processing program to rotate a point around arbitrary
axis but it stops after a bit. I'm trying to get full rotation of the
point around the axis.
import org.apache.commons.math3....
1
vote
0answers
182 views
OpenGL ArcBall Camera
I'm currently working on a OpenGl Project and I have alot of difficulty understanding how arcball camera work. From what I have read online, all I have to do is to rotate a camera around a target and ...