Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: interpolating  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

iride

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • Email
interpolating
« on: December 28, 2013, 05:43:57 pm »
http://www.gabrielgambetta.com/fpm3.html

I'm trying to implement entity interpolation explained in this article. I understand that I have to display the game couple frames late, but I have no clue how to translate this into code.
 sf::Packet packet;
 receivePacket(packet);
 packet>>newX>>newY; //now what should I do with this new position?
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10823
    • View Profile
    • development blog
    • Email
Re: interpolating
« Reply #1 on: December 29, 2013, 12:40:48 am »
Well we aren't your code monkeys either... ::)

If you can't understand a concept or an article, either ask specific questions or go and read some more books/articles/papers on that topic. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/