Unity Turret Tutorial – Part 2b Shooting System by Chris Gough = Straight Projectile and Tracking Projectile Work, beam does not

~~~~~~~~~~~~~Beginning of Fyis~~~~~~~~~~~~~
by 14:12 they solve the for(int i =0; projectileSpawns.Count; i++) error line
with for(int i =0; i < projectileSpawns.Count; i++)

13:22 they solve error for float angle = Quaternion.Angle(transform.rotation, Quaternion.LookRotation(transform.rotation – target.transform.rotation));


float angle = Quaternion.Angle(transform.rotation, Quaternion.LookRotation(transform.position – target.transform.position));

~17:12 when i noticed my line render was off~

~~~~~~~~~~~~~End of Fyis~~~~~~~~~~~~~

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.