How do I change player (ecctrl chid) starting position in my world and also make the camera start from there?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react, three.js, typescript
Research direction
Start with the Ecctrl component props and playerRef usage shown in the issue, then inspect the controller's positioning and camera-target documentation or examples. Done means documenting or demonstrating how to set the player's initial world position and align the starting camera without relying on mesh position.
Written by the indexing model from the issue text.
Description
I have a custom component which i use as my character for the child as shown below, how do I set a custom initial position for this? I tried using the camTargetPos prop but it moved only the camera and not the player. i tried changing the position of the mesh of my player component but whenever I move it it flies off or falls off infinitely. I hope you can help me out with this.
<Ecctrl
ref={playerRef}
floatHeight={0.05}
maxVelLimit={4}
jumpVel={4}
capsuleRadius={0.35}
capsuleHalfHeight={0.105}
>
<Player />
</Ecctrl>
This is the mesh for my player component:
<mesh
ref={head}
geometry={bowlCoverGeometry}
position={[0, 0.01, 0]}
scale={[0.6, 0.6, 0.6]}
>
<meshBasicMaterial color="sienna" />
</mesh>
- Dominant language
- TypeScript
- Stars
- 823
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pmndrs/ecctrl
-
Rapier Sleeping Body wake up code misses 1 frame of gravityPossibly taken @OptimusPi claimed this 8 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
errorOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
React 19May be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
bug zoo
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/runntime#151 ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
sidebandstudio/clawtrate#728 ·
Maintainers usually reply within 1 day
-
enhancement github_actions help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainers usually reply within 1 day
-
docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
DojoCodingLabs/hermit#73 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainers usually reply within 1 day