Answers for "how to rotate an object around a position in unity"

C#
21

how to rotate object unity

public Transform Position; // make reference in inspector

Position.Rotate(x, y, z);
Posted by: Guest on July-06-2020
0

unity always rotating object

public float speed = 50.0f;


    void Update()
    {
        transform.Rotate(Vector3.up * speed * Time.deltaTime);
    }
Posted by: Guest on February-02-2021

Code answers related to "how to rotate an object around a position in unity"

C# Answers by Framework

Browse Popular Code Answers by Language