I created a gun script that will fire a projectile from a certain spawn point. The problem is, whenever it spawns, it instantiates going forward. If the spawn rotates (Lets say left) The bullet still shoots forward, not to the left. Help? Here’s is the part of the code that instantiates a bullet prefab:
var clone = Instantiate(projectile, spawn.transform.position, spawn.transform.rotation);
clone.velocity = transform.TransformDirection(Vector3(0,0,speed))