unity always rotating object

void FixedUpdate()
{
	gameObject.transform.Rotate(0, 0, +1)//Rotate(x, y, z) + = add one per update
}

4.25
4
A-312 69370 points

                                    public float speed = 50.0f;


    void Update()
    {
        transform.Rotate(Vector3.up * speed * Time.deltaTime);
    }

4.25 (4 Votes)
0
4
9
Awgiedawgie 440215 points

                                    //Use FixedUpdate instead of Update for physics, rotation, and movement.
void FixedUpdate()
    {
        laserPointer.Rotate(x, y, z);
  		//Use your own rotation values to replace x, y and z.
    }

4 (9 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
unity make a gameobject spin how to make object spin in unity 3d unity infinitely spin object how to make object spin in unity unity object not rotating unity how to make object spin how to spin an object in unity unity rotate object around itself unity obejct spin unity make object spin unity how to spin an object unity rotating gameobject make a rotating object unity spin object on spawn unity unity spin object unity spin game object unity spin gameobject gameobject spin unity unity spin 3d object spin scene unity rotating an object constantly unity constantly rotate object unity always rotating object how to keep rotation constant unity constant rotate to specific angle unity make a cylender rotate continously unity how to rotate object infinitely in unity with given speed unity rotate object constantly unity object spind script unity make an object spin Unity making a block spin unity spin object script make object rotate on its place unity rotate constatly gameobject unity how to make an object rotate unity make onbject roteate unity non constant rotation how do i continually rotate in unity unity how to make an object rotate how to do constant spinning in unity 2d code how to make something rotate forever unity c# unity constant rotation how to make things rotate in unity unity rotate für ein object deactiveean unity add constant rotation unity 2d forever spinnign object spin unity constant rotation unity rotate object constantly unity unity make gameobject rotate infinite unity make an object rotate forever c# how to make object rotate forever
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source