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

Resolved Feeling like a derp cause lerp's not working

Discussion in 'Visual Scripting' started by CrazyEugene, Oct 3, 2022.

  1. CrazyEugene

    CrazyEugene

    Joined:
    May 4, 2022
    Posts:
    2
    I am trying to move main camera to the players position but for some reason nothing is happening. What am I doing wrong?

    Screenshot_3.png
     
  2. REDACT3D_

    REDACT3D_

    Joined:
    Nov 8, 2020
    Posts:
    222
    bro you got a late update going into a vector 2 that's getting a vector 3 position on self while lerpin' ' with a static value. also not telling anything to move.

    what are you actually trying to accomplish?
    literally move the camera from A to B smoothly?
    the smoothest may be the animator for that but that's a whole other ball o' wax.

    move the camera from somewhere in world space to the player's location smoothly?
     
  3. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    56
    REDACT3D_ likes this.
  4. CrazyEugene

    CrazyEugene

    Joined:
    May 4, 2022
    Posts:
    2
    Thanks, that helped, I just didn't know I need to "SetPosition" after the lerp. Thought lerp will do it for me :)
     
    REDACT3D_ likes this.
  5. ericb_unity

    ericb_unity

    Unity Technologies

    Joined:
    Nov 24, 2017
    Posts:
    167
    Yes, this is the problem at the moment, with API nodes. They seem to be doing something, but they need more nodes to do it.
     
  6. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    89
    I have nothing valuable to add here but I just wanted to say this post has the best title