ddevault / Craft.Net

(Unmaintained, see TrueCraft) Minecraft server, client, and etc for .NET
MIT License
228 stars 64 forks source link

Occasionally go Off Ground #157

Closed MoBaT closed 10 years ago

MoBaT commented 11 years ago

For some reason when you walk, you occasionally go off the ground for a second. You can notice it when you start running or walking.

ddevault commented 11 years ago

https://github.com/SirCmpwn/Craft.Net/blob/master/Craft.Net.Data/Entities/PlayerEntity.cs#L404

This is because there's some complications with the physics engine when you give control of an entity to an external source. You can fix it if you just comment all of this out, but then there are problems with entity tracking (falling damage won't work, etc). I plan to fix it properly, thanks for making the issue.

MoBaT commented 11 years ago

I dont know if this will help but if you kill yourself, it seems to fix the problem when you respawn.

ddevault commented 10 years ago

Doesn't seem to be a problem any more.