Search Unity

Visualize bouncing ball trajectory

Discussion in 'Physics' started by hainkiwanki, Dec 12, 2018.

  1. hainkiwanki

    hainkiwanki

    Joined:
    Oct 23, 2017
    Posts:
    20
    Hello,

    I followed this tutorial/code to create a visualization preview of a projectile. http://wiki.unity3d.com/index.php/Trajectory_Simulation (C#)
    As it is mentioned in the link, this will only work correctly with full bounciness (1) and no friction (0) on the colliding objects. However, my physics aren't that good to calculate the new velocity after a bounce where the friction is not 0.

    How do I calculate the correct new velocity of the projectile after bouncing?

    Thanks for your time.
     
  2. vonWolfehaus

    vonWolfehaus

    Joined:
    Oct 14, 2011
    Posts:
    11
    With the new physics upgrade, we can use multi-scene simulations to do this. They posted a video of this in action in this blog post, but I don't see where that code is. If anyone knows, please reply :)
     
    Desoxi likes this.
  3. Desoxi

    Desoxi

    Joined:
    Apr 12, 2015
    Posts:
    195
    Yea im searching for it as well.