Search Unity

Question how can i move this object using rb.velocity or rb.AddForce and not bugging it?

Discussion in 'Scripting' started by BluekM, Mar 12, 2023.

  1. BluekM

    BluekM

    Joined:
    Mar 7, 2023
    Posts:
    1
    so i have a game object that moves back and fourth in the X axis using a Math.Sin to calculate the 2 X's and a rb.position to move it, i want to increase it's speed when colliding with another object, i've tried to increase by adding speed to it's position but it bugs a little, what can i do?