Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Physics Prediction / Billiard Demo

Discussion in 'Physics Previews' started by zenheads, Jan 19, 2019.

  1. zenheads

    zenheads

    Joined:
    Nov 3, 2014
    Posts:
    6
    Would be great to be able to see a reference implementation for a simple physics prediction like the one showcased in the Billiard demo on YouTube.
     
  2. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,500
    Can you put a link to the Billiard demo on YouTube?
     
  3. zenheads

    zenheads

    Joined:
    Nov 3, 2014
    Posts:
    6
  4. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,500
    In this forum, you can embed a youtube video by using MEDIA
     
  5. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195
    Would be awesome to have at least a few code snippets on how to achieve it.
    Im not sure if it is intended to create a seconds scene and move a duplicated sphere to that scene and simulate the sphere with all the current phyics objects via PhysicsScene.Simulate.
    You would have to move all duplicated physics gameobjects over to the second scene everytime you start to shoot.
     
  6. zenheads

    zenheads

    Joined:
    Nov 3, 2014
    Posts:
    6
    yeah this is the whole reason i'm looking forward to having any kind of reference we can follow. I'm sure we can hack around and find some solutions but it's completely unnecessary to go around in the dark when we can have a best practice to follow and build upon that.
     
    Desoxi likes this.
  7. Taigama

    Taigama

    Joined:
    Oct 17, 2015
    Posts:
    27
    I just found this. :D
    https://docs.unity3d.com/Manual/physics-multi-scene.html