Search Unity

how does the platform effector work?

Discussion in '2D' started by csotomon, Apr 25, 2015.

  1. csotomon

    csotomon

    Joined:
    Apr 28, 2012
    Posts:
    20
    Hi, I have a platform with a edge collider and the platform effector with one way attribute on.

    When the character collides with the platform game objet from the front. Sometimes the edge collider allow cross it, and sometines not.

    U can see the video for a demonstration.

     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,492
    The video is private so I can't see it however the PlatformEffector2D bases collisions against it depending on whether the colliding object is moving (in local-space) 'down' i.e. -Y or not. If it's moving down then you'll get contacts however if it's moving 'up' i.e. +Y then it'll pass through.
     
  3. csotomon

    csotomon

    Joined:
    Apr 28, 2012
    Posts:
    20
    @MelvMay sorry, this is the correct video.
    My problem is that when i collide from the front some times the edge collider stop my character, and some times don't do it.

    the effect that i wish is that never stop it, but if the character jump, leave it jump it over the platform.

     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,492
    I see the problem now; yes, there's already a bug report about this. Expect to see this fixed in a patch release.
     
    csotomon likes this.
  5. csotomon

    csotomon

    Joined:
    Apr 28, 2012
    Posts:
    20
    thank you, I'll wait for the patch.

    do you have the issue tracker link to check the advances about the problem?
     
  6. lordsnake

    lordsnake

    Joined:
    Dec 21, 2014
    Posts:
    4
    i have the same problem. the platform effector has too many issues in my case.
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,492
    There's only one open bug case that I know of so if you have problems then please share them or better still, create a simple repro in a bug case and send me the case number so I can expedite.
     
  8. lordsnake

    lordsnake

    Joined:
    Dec 21, 2014
    Posts:
    4
    how i do that? noobie here XD.
     
  9. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,492
    lordsnake likes this.