Strange/Buggy code behavier

Hallo guys,

why is this code setting my rigidbody velocity to 0?

rigidbody.velocity = Vector3.Lerp(rigidbody.velocity, rigidbody.velocity, 0);

It makes no sence to me :frowning:

Vector3.Lerp(rigidbody.velocity, rigidbody.velocity, 0);

is returning the right velocity, but if I set rigidbody.velocity with this line, the velocity is {0, 0, 0}

I am using C#

  • RaverTiny

Seems like I just had to restart Unity… strange.