this is my script
var projectile : GameObject;
function Update () {
if (Input.GetButtonDown("Fire1")) {
var clone : Rigidbody;
clone = Instantiate(projectile, transform.position, transform.rotation);
clone.velocity = transform.TransformDirection (Vector3.forward * -120);
}
}
someone plz tell me why my bullet doesnt shoot and just falls to the ground
still falls to the ground?
– sam32xi tried attaching the move thing to my bullet function Start () { velocity = transform.forward * -120; }
– sam32x