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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Set Position not working?

Discussion in 'Visual Scripting' started by Notso, May 25, 2021.

  1. Notso

    Notso

    Joined:
    Oct 25, 2015
    Posts:
    42
    So I am following this tutorial, chompman, and they set up the warps to go from left to right side (or back) and for some reason the code seems to fire but the player never actually warps to the other side.
    Below I have a trigger, get component collider(which is set as trigger), ontriggerenter which then compares the tag to PLAYER and comes out as true which goes into transform set position.
    What is set I have the player referenced, get component transform...for x,y,z I have the 2nd warp to get position (I also manually entered the position no change) I know it is hard ot read but this is play mode and all the connections have the proper references printed on them but he just does not warp.
    What simple thing did I miss?
    upload_2021-5-25_10-24-53.png
     
  2. Notso

    Notso

    Joined:
    Oct 25, 2015
    Posts:
    42
    No one sees something I may have missed here? For the life of me I can't get the player to warp from 1 place to the other on trigger enter
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,563
    The correct forum for Bolt is here.
     
  4. Notso

    Notso

    Joined:
    Oct 25, 2015
    Posts:
    42
    You realize I click on your link I get sent right back here right?
    It doesn't appear to be a different forum......
    (I will post to it if you show me, or move my thread there, or move it an provide an answer?)
     
  5. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,563
    Sorry, I was doing a bunch of these redirects to this forum about Bolt and somehow I had yours as a redirect which of course it wasn't. :)
     
  6. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Could it be that the GetComponent Node need to be executed?
    I would call it between the Branch true and the position set.
     
  7. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,775
    There's no need for GetComponent in most cases when using Bolt/UnityVS. Bolt will automatically find the right component with just a GameObject reference.