Answers for "unity rotate around another object"

C#
3

rotate gameobject unity

Transform.Rotate(Vector3 eulers)
// you can add relativeTo=Space.Self for it to rotate arround itself or do
// relativeTo=Space.World to rotate relative to the scene
// https://docs.unity3d.com/ScriptReference/Transform.Rotate.html
Posted by: Guest on January-24-2022
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 "unity rotate around another object"

C# Answers by Framework

Browse Popular Code Answers by Language