Rotation is the circular movement of an object around a specific axis.
0
votes
0answers
16 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
42 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
43 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
34 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 ...
22
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
18 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
20 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
69 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 ...
0
votes
0answers
23 views
Robot Arm Simulation in Unity3D
A friend of mine is having a trouble when he needs to rotate the robot arm simulation he's working on, the robot can already grab stuff with its hands however seems like sometimes randomly crashes ...
1
vote
1answer
50 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
47 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
22 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
0answers
19 views
Rotation weirdly affects translation
I'm working on simple spaceship simulation. I can turn on/off engines with space, rotate vertically with w, s and horizontally with a, d. The problem is rotation weirdly affects translation. It looks ...
0
votes
1answer
31 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
30 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
47 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
10 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
24 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
65 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 ...
0
votes
0answers
27 views
Python Pygame Collision with a Rotating character
Trying to make my character not be able to pass walls, I'm finding it difficult as my character rotates to face where ever my mouse is while moving with WASD to do this I have used self.pos to keep ...
-1
votes
1answer
87 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
34 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
37 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
26 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
25 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
15 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
59 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
37 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
40 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
73 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
51 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
41 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
47 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
37 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
37 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
78 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
29 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
27 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
74 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
86 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
100 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
129 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
111 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
61 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
130 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
154 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
74 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
53 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
52 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 ...