//I’m following a book which refers to MonoDevelop, and to my understanding this should make the sphere move and spiral, But it does nothing. Perhaps I am missing something? Or does using a different IDE make a difference? Or is there another approach? I am 100% new to programming, So please if it’s obviously just state so. Thanks
using UnityEngine;
using System.Collections;
public class sphereController : MonoBehaviour {
public float Control;
public float OtherControl = 5;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.position = new Vector3
{
x = Mathf.Sin(Control) * OtherControl,
y = Mathf.Cos(Control) * OtherControl,
z = Control * OtherControl
};
}
}