hi, im following the tutorial of space shooter, and i have run on a snag in the “creating shots” video.
my problem simply is, my bolt will not move when dragged onto the scene. it simply stays there, on the origin point, no matter how many i spawn. here is my code:
using UnityEngine;
using System.Collections;
public class Mover1 : MonoBehaviour
{
private Rigidbody rb;
public float speed;
void Start()
{
rb = GetComponent<Rigidbody>();
rb.velocity = transform.forward * speed;
}
}
now, i know this is not exactly what the speaker has in the video, but i consulted the upgrade guide and this is what i have.
please and thank you, and have a nice day.