Search Unity

Can't find the problem

Discussion in 'Editor & General Support' started by Shayke, Sep 6, 2019.

  1. Shayke

    Shayke

    Joined:
    Dec 8, 2017
    Posts:
    352
    Hi guys, everything was alright until something happend on the editor and i have no idea what.
    So i am making a game with an archer, the archer aims with the joystick.
    upload_2019-9-6_17-9-58.png
    The direction is the Blue dot minus the other Blue dot and other calculations.
    But suddenly, it is not working anymore.
    The blue dots has the same position (when i print it) even when i see they clearly don't.
    Code (CSharp):
    1.    Vector3 vectorToTarget = PointE.transform.position - PointC.transform.position;
    vectorToTarget has always the same value.
    What could happend in the editor???
    I think i clicked Ctrl + Z and everything ruined somehow.