Tuesday, 2 October 2018

Looking for some help with interpolating rigidbodies


Hi everyone!I'm dealing with the same "jitter" issue that everyone seems to complain about at one point or another.Before I go any further: * I know the jitter is caused by the rigidbody player and not the follow camera * I know the jitter is caused by the rigidbody moving at fewer updates than the camera (FixedUpdate() vs Update()) * I know there is a built-in option to interpolate rigidbodies * I've read this classic article.* I'm running a 144hz monitor, and I find the jitters to be very jarring. When I switch to 60hz, it looks perfectly smooth.I'm sure you're wondering at this point, "Well, you found your answer by now, right?" Not quite. While the article linked above is super useful, it doesn't contain interpolation code that works with rigidbodies moving via AddForce().Which leads me to my question, how can I interpolate a rigidbody that is moving via AddForce()?Thanks!

No comments:

Post a Comment