Hello
I just finished looking for answers in the forum but I did not find an answer
I have a simple sprite 2d hexagonal, i make it rotating since start , this sprite shoots a projectile but the projectile always shoot in the same direction without following the rotation of the sprite. what am i missing? thank you
GameObject laser = Instantiate(colpo, transform.position, Quaternion.identity) as GameObject;
laser.GetComponent<Rigidbody2D>().velocity = new Vector2(0, projectileSpeed);
Destroy(laser.gameObject, 4f);