Search Unity

Set collider as a gameObject

Discussion in 'Scripting' started by b4gieta, Jul 31, 2019.

  1. b4gieta

    b4gieta

    Joined:
    Jul 17, 2018
    Posts:
    97
    Hi
    I want to make a car system like GTA but in 2D left-right game. Is there a way to "clip" gameObject to collider which he is colliding at the same time? I want to set player's position to the same as position of gameObject with this collider. Is it possible?
     
  2. palex-nx

    palex-nx

    Joined:
    Jul 23, 2018
    Posts:
    1,748
    Are you trying to make your player stand in front of the car's door to start car enter animation sequence?