Hi, I’ve got some strange stuff happening with my rigidbody when I apply a force to it. I have the rigidbody getting set to a position with:
object.transform.position = point.transform.position;
I then apply a force when a button is pressed with:
object.rigidbody.AddForce(point.forward *10000 + point.up *10000);
The problem is that as time goes on, the direction the force is applied in gradually changes until it goes directly down rather than up and forward. So if I fire straight away, then it works fine, but if I wait a few seconds it ends up going down. The Point is just a stationary point that doesnt move and I have debugged the forward and up vectors and they dont change, so I have no idea whats going on. The only thing that fixes it is not setting the position to the points position.