Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Client physics integration #202

Conversation

sapphire-arches
Copy link
Contributor

Integrates clients with they physics system so that users of the library don't have to build their own physics simulation to properly interact with the server. Things to do:

  • keep track of the current game mode so we can turn gravity off in creative mode
  • find a way to test the robustness of the current locking strategy: it appears to work, but maybe there are other things that need locking/syncing.
  • Implement a way for client code to wait on a physics step (ManualResetEvent?)

lock (_positionLock)
{
SendPacket(new PlayerPacket(OnGround));
if (_positionChanged) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use K&R style braces here.

try
{
engine.Update();
} catch (Exception)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting error here.

@sapphire-arches sapphire-arches deleted the client_physics_integration branch March 27, 2014 01:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants