I can't seem to move my sprite object down along the axis, I've been trying to follow the same format as the space shooter example. I've tried using Transform.Translate too and modifying transform.position directly but still can't get it to move down the z axis. Instead it seems to just go down the y axis through the camera. Here is my Object: Here is the code: Code (CSharp): public class Mover : MonoBehaviour { public float speed; void Start () { GetComponent<Rigidbody>().velocity = transform.forward * speed; } }
2D objects only move on the XY plane I believe. Plus you need to do the movement in Update or FixedUpdate if you want it to be continuous.. Start is only called once.