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

Rotation * Vector3 unit not working.

Discussion in 'Scripting' started by Findo, Aug 8, 2014.

  1. Findo

    Findo

    Joined:
    Mar 11, 2014
    Posts:
    368
    transform.parent.position += new Vector3(transform.rotation.x, 0, transform.rotation.z * Thrust) * Time.deltaTime;



    Thrust is 30;
    And the parent of this script's parent is a big block.


    PROBLEM: It does not move! No errors!
     
  2. Magiichan

    Magiichan

    Joined:
    Jan 5, 2014
    Posts:
    403
  3. ScriptKid

    ScriptKid

    Joined:
    Aug 8, 2014
    Posts:
    23
    but the single values are float i guess...
     
  4. Magiichan

    Magiichan

    Joined:
    Jan 5, 2014
    Posts:
    403
    what do you mean?
    use transform.eulerAngles.x/y/z ? :eek:
    What exactly are you trying to do with this anyway?