Moving to position using forces
Posted: Thu Sep 18, 2014 11:20 am
Hi Norbo,
First thank you for your time and for this great piece of sotware called Bepu!
In my network game, I receive the players' position and in order to move them I need to use forces to avoid teleportation of objects. I use prediction in server's side, thus, the position that arrives to the client is very near to the actual position, and my objective is to put the objects in client side as close as posible to this position and doing it smoothly.
Right now I am using a linear motor to move them to their new position, it works but it creates excesive lag. I am trying to adjust the travelling time of the object to the latency of the network, adjusting the damping of the spring, but it is very difficult and my results are not very good.
Any idea on how to move an object to a known position using forces and in a known time?
First thank you for your time and for this great piece of sotware called Bepu!
In my network game, I receive the players' position and in order to move them I need to use forces to avoid teleportation of objects. I use prediction in server's side, thus, the position that arrives to the client is very near to the actual position, and my objective is to put the objects in client side as close as posible to this position and doing it smoothly.
Right now I am using a linear motor to move them to their new position, it works but it creates excesive lag. I am trying to adjust the travelling time of the object to the latency of the network, adjusting the damping of the spring, but it is very difficult and my results are not very good.
Any idea on how to move an object to a known position using forces and in a known time?