Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 108758

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

0 votes
1 answer
212 views

How to rotate the transform only on the Y?

Vector3.RotateTowards(transform.forward, targetDirection, singleStep, 0.0f); // Draw a ray pointing at our target in Debug.DrawRay(transform.position, newDirection, Color.red); // Calculate a rotation … a step closer to the target and applies rotation to this object transform.rotation = Quaternion.LookRotation(newDirection); } …
Daniel Lip's user avatar
  • 1,757
0 votes
1 answer
85 views

Why does the player rotate nonstop?

At the bottom is the coroutine I used to make the rotation, but because of the stuttering I want to try to do it without coroutine to see if it will fix the stuttering problem. using System.Collections …
Daniel Lip's user avatar
  • 1,757
0 votes
1 answer
412 views

Why does my object rotate too fast?

IEnumerator MoveBack() { yield return new WaitForSeconds(3f); float t = 0; float duration = 30f; while (t < duration) { t += Time.deltaTime; player.rotation = Quat …
Daniel Lip's user avatar
  • 1,757
0 votes
2 answers
199 views

Why do objects spin in circles instead of stopping when reaching their target?

Only the rotation makes them move to the target direction. Since the objects rotate to face the target direction, maybe when they reach the target they keep rotating ? …
Daniel Lip's user avatar
  • 1,757
0 votes
2 answers
105 views

How to keep an object that rotates around another at the same height when the radius changes?

In my game, I have one object that rotates around another using transform.RotateAround, and I need to change the radius of its orbit. The behavior now is that the orbiting object moves to the larger r …
Daniel Lip's user avatar
  • 1,757