Hi! So I have a script where i rotate an enemy to face the player.Then I want the enemy to shoot a projectile at the angle the enemy is.I have tryed alot of different codes from the internet to shoot the projectile forward but instead my projectile does not move at all.
this causes the same thing:
“rigidbody2D.AddForce(Vector3.forward * Speed)”
I also tryed
rigidbody2D.AddForce(transform.forward * Speed)"
In both cases the projectile does not move.
Any help is apreciated.Thank you