How can I get objects to move around like this?
members.iinet.net.au/~pontipak/redsquare.html
so far i’m spawning objects and which have the following script attached to them:
public class ConstantMove : MonoBehaviour {
private float fSpeed = 4f; // Units per second of movement;
void Update () {
transform.localPosition = transform.localPosition + -transform.forward * fSpeed * Time.deltaTime;
So far the object will only move in a straight direction along the z axis once spawned. Am I going about this the right way or is there a better method?