Search Unity

Platform Effector 2d - Things Keep Falling

Discussion in 'Physics' started by Ramon-Molossi, Apr 4, 2015.

  1. Ramon-Molossi

    Ramon-Molossi

    Joined:
    Jan 23, 2015
    Posts:
    2
    A simple case:

    A ball (circleCollider2D and rigidBody2D) falling in a platform (BoxCollider2D and PlatformEffector2D)

    Using Unity 5.0.0f4: Normal. (y stays fixed in the end of the moviment)

    Using Unity 5.0.0p3: Bouncy Ball (y position keep going up and down)
    Using Unity 5.0.1f1: Bouncy Ball (y position keep going up and down)

    It causes sometimes my character, in the game, fall from platform.

    Ps:BoxCollider is with UsedByEffector true and the effector UseOneWay is true; If i set UseOneWay to false, the bouncying effect stops.
     
  2. pcg

    pcg

    Joined:
    Nov 7, 2010
    Posts:
    292
    Try changing the Collision Detection to Continuous on the RigidBody2D of your moving object.
    I've just come across a similar problem and this worked for me.
     
    exedra44 and jutjazt like this.
  3. ChristopherBurgdorff

    ChristopherBurgdorff

    Joined:
    Aug 31, 2014
    Posts:
    1
    That worked for me too.
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    Note the post you're replying too was from 2015.

    Anyway, if your character is moving too fast then it can step over colliders and that has nothing to do with effectors and is how discrete collision works but it's fast and the default. Continuous is far slower but accurate. Just be careful where you use it. Just don't scale to hundreds or thousands of things using it on lower end devices.
     
  5. exedra44

    exedra44

    Joined:
    Sep 16, 2015
    Posts:
    1
    it works thanks a lot