Player-entity collision woes

Termos
Member
 
Posts: 224
Joined: Sun Dec 16, 2018 12:50

Player-entity collision woes

by Termos » Fri Mar 01, 2019 10:52

Something weird seems to happen in both 4.17 and 5rc2, when a moving entity comes to a collision with a stationary player.

It looks like if the client lost track of the entity, it becomes inert, retains its velocity, acceleration etc. as they were at the moment of collision, and it continues on until about a couple of seconds after the collision, when it suddenly disappears and reappears at the collision spot.

Is it a known problem?
 

User avatar
Krock
Developer
 
Posts: 4389
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: Player-entity collision woes

by Krock » Sat Mar 02, 2019 09:59

You will notice this phenomenon as soon there is some lag on the server (even in singleplayer sometimes). The client simulates the entity movement so that you get a smooth movement before the server sends the current data. However, the client cannot foresee changes in the movement, such as direction changes of a cart.
This means that until the client (you) receives the new position/velocity data, the entity continues moving like it did before. The only thing you can do against this problem is to reduce the lag (optimized mods, LuaJIT enabled) and to have a stable internet connection.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

Termos
Member
 
Posts: 224
Joined: Sun Dec 16, 2018 12:50

Re: Player-entity collision woes

by Termos » Sat Mar 02, 2019 10:28

Krock wrote:The only thing you can do against this problem is to reduce the lag (optimized mods, LuaJIT enabled) and to have a stable internet connection.


I don't think this is the case. This is local game.
The problem happens consistently and only under specific conditions as described.

Here's a clip
Image
It doesn't really fall off the ledge, it's programmed not to do so, and in fact, it reappears back up after a while.
The entity has both physical and collide_with_objects set to true.

Taken on 0.5rc2, but in 0.4.17 it's all the same. I'm on win 64.

Edit: Done a few more tests, looks like a client-side issue - on_step is being called normally and calls to get_pos suggest the server believes the entity is stationary during the course of the glitch.
 


Return to Problems



Who is online

Users browsing this forum: oddguy117 and 1 guest