Search Unity

Multiple Distinct Physics2D Bubbles on Screen

Discussion in 'Physics' started by cebdaman007, Jul 12, 2020.

  1. cebdaman007

    cebdaman007

    Joined:
    Dec 3, 2013
    Posts:
    1
    Hi,

    I want to have multiple "games" on screen at once, each with their own physical bubble.

    I currently have a system that calls Ignore collision on each collider that is not in the current "bubble". However I'm now running into issues with my raycasts detecting colliders in separate "bubbles".

    So I was wondering, is there a better way to do this (multiple Physics2D bubbles at once)? My brute force "ignore collision" approach seems a little rough.

    Any information that can point me in the right direction would be very appreciated!

    Thanks
     
  2. noyogiisMYusername

    noyogiisMYusername

    Joined:
    May 18, 2020
    Posts:
    21
    If I understand your goal correctly, your "bubbles" might work best with multiple scenes. You can render multiple scenes together. Lookup SceneManager and the "Additive" LoadSceneMode.
    If that works for you, please post here how it worked for you, so others can learn from your experience.