unity rotate object around itself code example
Example: unity always rotating object
public float speed = 50.0f;
void Update()
{
transform.Rotate(Vector3.up * speed * Time.deltaTime);
}
public float speed = 50.0f;
void Update()
{
transform.Rotate(Vector3.up * speed * Time.deltaTime);
}