Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Confiner catapult my game objects

Discussion in 'Cinemachine' started by Ryusuka, Jul 7, 2020.

  1. Ryusuka

    Ryusuka

    Joined:
    Sep 30, 2013
    Posts:
    2
    I'm trying to put a confiner to my 2D top view game.
    Unfortunately, it's not a success as all my game objects are catapulted out of the scene when I pressed play.

    So what I did is to create a polygon 2D collider on my Ground tileset. I also put my ground to a new layer that I called "Bound", In order to have it on a different layer than my other game objects:

    Unity_tNpH1VZBGx.png

    I went into the project setting to change the propriety of this layer:
    6ExNvHNnXC.png


    This is how my Confiner looks like:
    Unity_2W2Ke0iWt7.png

    Nonetheless, everything's going to space when I launch the game
    Unity_yi0BiOECho.png

    I'm running out of ideas. If someone can help me it would be nice.
    Thank you!
     
  2. Ryusuka

    Ryusuka

    Joined:
    Sep 30, 2013
    Posts:
    2
    I found the problem. For some reasons, the ground had a rigid body with gravity and it was the floor that was falling down
     
    gaborkb likes this.