About 'FMath::Lerp For Client Interpolation'!

uem_s04_fmathlerp_for_client_interpolation

#1
  • Ensure movement replication is off.
  • Updating the time variables.
  • FMath::Lerp vs FMath::LerpStable.
  • Implementing the pseudocode.

(Unique Video Reference: 27_KK_UEM)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!


#2

I would suggest to clamp the LerpRatio between 0.0f and 1.0f.
If ClientTimeSinceUpdate > ClientTimeBetweenLastUpdates
The position of the vehicle will overshoot our target in direction start to target.


#3

Is that not desireable?


#4

I was having a weird issue where my simulated car would move through objects on the clients screen if I stopped inputting moves. It was I guess like he said overshooting the location, and the clamp fixed that.