Projectile Turret Weapon Bug (C#)

I have a tank turret that can rotate 360 and a point attached to the end of the barrel to spawn the projectile. When I rotate the cannon and fire the projectile spawns at the correct place, but it does not move in the correct direction. It keeps the original rotation, and always moves in the same direction.

What do I need to do so the projectile inherits the direction of the turret? The codes in C#

Thanks!

instead of vector3, use transform.transfromdirection

great thanks, that pointed me in the right direction

1 Like

was that meant as a pun?

1 Like

haha, i wish, but at this time of night I am not that clever