All Questions
Tagged with unity-game-engine rotation
816
questions
1
vote
1
answer
21
views
I am having a hard time getting an object to rotate and move in the object's new forward direction
Why is my player still moving forward(north) in world coordinates? I want the player to face and move in a new direction. Please explain in simple terms.
void PlayerMover()
{
_step = _speed * ...
1
vote
1
answer
43
views
Getting Smooth Response between Horizontal Snapping
I currently implemented so that my Character leans in the direction he is walking on Horizontal Layer. So if he presses 'D' he leans to the right and 'A' he leans to the left.
I got that working, but: ...
-1
votes
0
answers
21
views
How to write a 2D rotation script for Unity 2D
I need to program a 2D rotation class for a unity game
As a part of this problem I am not allowed to use the built in Unity 2D rotation libraries, so I am seeking advice on how best to approach making ...
0
votes
0
answers
22
views
"UV pixel mapping" a projection onto a planet
My problem is that i try to "UV map" an unwrapped jupiter onto points on a sphere and i did that but the texture doesnt rotate (just occasionaly flips 180, to be exact i see the poles of the ...
0
votes
0
answers
17
views
Unity, Camera movement Tilt
Trying to add a camera tilt while moving. Found this code in forums posted by "bididon0" yet in my particular case, I assume, it only works partially. As long as I do not rotate my player ...
1
vote
1
answer
39
views
Alter object’s transform so its parent’s matches its child’s
Going insane over this. I’m trying to figure out a way so that when I grab an object, I can set the rotation & position of that object such that the rotation and position of the original object’s ...
0
votes
0
answers
18
views
Unity child not rotating around parent?
So, I am working on a 2d brawler game, and I've just started combat, to manage combat I have created an empty that is a child of my character which I use as a hitbox to check if I've hit an enemy. I ...
1
vote
2
answers
80
views
In Unity, rotating one object around another object is like orbiting around in the scene editor by holding Alt and left-clicking
I've tried combining two RotateArounds and then reading mouse offsets, but it shakes violently when it reaches the top. I attempted to lock it at 90 degrees, but it still didn't work. I haven't found ...
-1
votes
1
answer
37
views
Quaterion capitalization difference
I was writing some unity 2d Quatarion Rotation code, but after completing, it gave some errors, then, i capitalized 2 Q's in 2 "quaternion" keywords, and the code started working Just fine. ...
-2
votes
1
answer
46
views
rigidbody.velocity not working with transform. up
I have checked multiple times that the rotation is being loaded by the rigid body and rotation isn't frozen. but it will just jump straight up. Also tried to see if the sleeping mode on the rigid body ...
0
votes
0
answers
51
views
Converting IMU coordinate to Unity Coordinate
Hi i tried to align IMU coordinate to Unity coordinate.
What i want to do is
IMU coordinate(right hand) to Unity coordinate (left hand)
IMU is attached to my hand so get the hand orientation(...
0
votes
1
answer
152
views
Convert string to float without loosing decimal places
I am having lots of strings that represent rotation values. These strings have 0 to 5 decimal places.
When converting these strings to floats to apply them as rotation values to GameObjects, the float ...
0
votes
0
answers
60
views
Upper and lower body rotation issue in Unity
I've got a problem related to rotation that's driving me crazy.
I'm pretty new in the 3D world and I'm playing with character movement. The goal is to:
Have the upper body face the player's looking ...
0
votes
2
answers
39
views
I am working an a player script for a 1st person game, can anyone help me add clamping to this rotation script?
cameraVertical = Input.GetAxis("Camera Vertical") * turnSpeed * Time.deltaTime;
myCamera.transform.localRotation *= Quaternion.Euler(cameraVertical, 0, 0);
I am working in unity, and I am ...
0
votes
0
answers
67
views
How does Unity implement its RotateAround function to avoid jitter?
I have a GameObject that I am rotating around a given point in 2D using my own implementation which is the following:
public override IEnumerator transformPlayer(MyTransform target, GameObject ...