Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

i have a problem with "is trigger"

JosephDZJosephDZ Member

I have a player who jump on a pad , the two have 2d collider , i want to do something when the player touch the pad , i have used "ontriggerenter2d"and i checked "is trigger" on the pad but the player now can't jump on it like the pad don't exist !??

Best Answer

  • NoobPotatoNoobPotato Member
    Accepted Answer

    Add a child object with a 2D collider component

    Pad(GameObject)

    |-Collider(Child GameObject)


    Collider will turn into a trigger which have no collision performance when you checked "is trigger" .

Answers

  • You need to create a if statement which checks for the player tag or any other tag. The. You would grab the player rigid body and add a force to it.

  • JosephDZJosephDZ Member

    Thank noob you helped me

Sign In or Register to comment.