Hi
So i got a particle that i would like to shoot out from a gun problem is it only moves on 1 axis no matter where i am facing. Any help?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ProjectileMove : MonoBehaviour
{
public float moveSpeed;
public float fireRate;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if(moveSpeed != 0)
{
transform.position += transform.forward * (moveSpeed * Time.deltaTime);
}
}
}