question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`PhysicsPlayer` local player of `PhysicsSample` cannot be controlled by client

See original GitHub issue

Description

The PhysicsPlayer cannot be controlled (using WASD or arrow keys) by the client, it doesn’t move at all.

Reproduce Steps

  1. Open the PhysicsSample scene
  2. Host a game
  3. Open a new instance and join the game
  4. Try to move the player on the client instance, the player won’t move.

Actual Outcome

The client player can’t be controlled at all.

Expected Outcome

I’d expect the client to be able to control the player and move it around, exactly how the host can move their own local player.

Screenshots

image

Environment

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NoelStephensUnitycommented, Sep 30, 2022

@LoneDev6 I am sorry to hear that, but glad you found the netcode solution that meets your project’s needs.
Hopefully you will consider using Netcode for GameObjects with your next Unity project.

Best Regards,

Noel

1reaction
ashwinimurtcommented, Jun 6, 2022

This is probably a bug in the Sample, and the Sample may be broken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Controlling other character's physics from the client?
It's just that I need a way to control the physics of other player's characters locally, so I can make other players move...
Read more >
Client based physics not the same as server
Anyway, after messing about with the networking tutorial, I've managed to get a game that connects over the network in a server->client basis....
Read more >
How are physics managed between the server and ...
As a developer, I care about my game's performance, knowing how to assign physics processes between the server and the client would be ......
Read more >
Multiplayer: server-side physics Vs client-side
I use both interpolation and extrapolation clientside. Player movement/control is handled on the server too, the client only sends the ...
Read more >
Practical questions about Integrating physics on a ...
You can see that the local client (no orb over head) is moving smoothly, while the server position is choppy. This was done...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found