Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question object must push off another while each off them has a point as a magnet

Discussion in 'Physics' started by DanoneTen, May 20, 2023.

  1. DanoneTen

    DanoneTen

    Joined:
    Jul 1, 2021
    Posts:
    4
    i got a task to make one object bounce off another, but have no idea how to do the same, when at least one object should keep on point and another one "dethrone" him can you help me pls? i tried a lot of solutions with velocity, direction calculating and etc.

    here is an example in gif format
     

    Attached Files:

  2. Geniusme56

    Geniusme56

    Joined:
    Aug 21, 2021
    Posts:
    51
    See which one is not at the dot, then increase the value of how much it is attracted to the dot?