Stop drag on ball rolling down hill
I'm making an endless runner where the ball is rolling down generated ramps, when I apply force left or right to "change lanes" it slows the ball down as it is "grinding" against the invisible walls (constraints) I have set up. How can I stop this from happening, and just move the ball to each lane without slowing its downwards velocity.
Constraint:
if(transform.position.x > 2)
{
transform.position = new Vector3(2, transform.position.y, transform.position.z);
}
if(transform.position.x < -2)
{
transform.position = new Vector3(-2, transform.position.y, transform.position.z);
}
Thanks in advance :)
capture.png
(41.9 kB)
Comment