Search Unity

Question set a time for the occurrence of a certain event at a certain point on the road

Discussion in 'Getting Started' started by bircastri, May 19, 2022.

  1. bircastri

    bircastri

    Joined:
    Jun 19, 2019
    Posts:
    15
    Hi all, I need to know if is possible apply this change:

    I have a driving simulator build using Unity. In a scene, there are some evets that leave when the player car passes through waypoints. Now this waypoints are in fixed position, the player car run some meters and when it passes through the waypont the event is triggered and started. Now I need to change this and I want that the player car can be run for some minutes before passes through the waypoint but this time could be changed.

    1.JPG

    I had hypothesized if it was possible to lengthen the pieces of road but from the code, but I have no idea how and if it can be done.
    For the road I used this component EasyRoad

    2.JPG