Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Vector3 Multiplication in Tutorial

Discussion in 'Scripting' started by Soulice, Aug 18, 2014.

  1. Soulice

    Soulice

    Joined:
    Aug 18, 2014
    Posts:
    69
    The tutorial that shows the sphere moving and collection cubes has a section on camera control and has the camera following the character sphere. There is a scripting line that says to multiply the character position vector by an offset vector. This throws an error that there is no multiplying of Vector3's. How would one do this? Tutorial is checked up to 4.0 and I am using 4.5.2(3). Scale sends the camera flying to neverland.
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    I think they meant to add them.
     
  3. Soulice

    Soulice

    Joined:
    Aug 18, 2014
    Posts:
    69
    Bingo! Thanks!