Search Unity

Resolved DOTS Physics Problem with the Balls

Discussion in 'Physics for ECS' started by DevViktoria, Nov 22, 2021.

  1. DevViktoria

    DevViktoria

    Joined:
    Apr 6, 2021
    Posts:
    94
    I wanted to try how my pinball game is working with two balls in it. I am using the Unity Physics.
    But when I add another ball onto the table it seems that is affecting the movement of the first ball.
    The first ball is moving differently if it is on its own and if there is another ball on the table.
    I don't understand why is this happening.
    I created a short video explaining the problem:
     
    Lukas_Kastern likes this.
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    The second ball collides with the first one, so it's affecting its movement. Try instancing the second ball in a different position so it doesn't interact with the first one.

    upload_2021-11-22_18-5-44.png
     
    Lukas_Kastern likes this.
  3. DevViktoria

    DevViktoria

    Joined:
    Apr 6, 2021
    Posts:
    94
    Nice spot! I totally haven't noticed that :) I will try also what you had suggested :) Thank you very much :)
     
    Edy likes this.