Search Unity

Camer lerp?

Discussion in 'Scripting' started by Treasureman, Nov 21, 2014.

  1. Treasureman

    Treasureman

    Joined:
    Jul 5, 2014
    Posts:
    563
    I just need a script (preferably java) that will lerp a camera from the postions

    X: -4177.642
    Y: -3220.734
    Z: 6346.121

    to the position

    X: 5720.9
    Y: -3220.734
    Z: 5188.323

    and back again when the input 'SwitchShoulder" (That's the name of the input) is pressed.
    Could someone help?
     
  2. cmcpasserby

    cmcpasserby

    Joined:
    Jul 18, 2014
    Posts:
    315
  3. Treasureman

    Treasureman

    Joined:
    Jul 5, 2014
    Posts:
    563