pmndrs / pmndrs/ecctrl

Create two instances of ecctrl for online

Open
#87 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
797
Forks
98
Avg merge
8m
Merged PRs (30d)
1

Description

Hello,
I am setting up a project in which I make the movement of the main character with ecctrl. The problem is that if I load another ecctrl for a second player, the movement that I apply to the main one also applies to the second, even if they are different references. I have tried creating two separate components, with different ecctrl and group references and it remains the same. Does anyone have any ideas on how to use it?

Thanks a lot.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with two separate ecctrl components and distinct controller and group references. Inspect how each instance receives movement input and maintains state; done means movement applied to one player no longer affects the other in an online two-player setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, three.js, typescript
Domain
frontend, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.