pmndrs / pmndrs/ecctrl

When camCollision is disabled, camInitDir is initially ineffective.

Open
#86 4 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

<Ecctrl					
  camInitDir={{ x: 0.4, y: 0 }}
  camCollision={false}>
  <EcctrlAnimation
	  characterURL='/models/tribal.gltf'
	  animationSet={animationSet}>
	  <Character position={[0, -0.9, 0]} />
  </EcctrlAnimation>
</Ecctrl>

When camCollision is disabled, camInitDir is initially ineffective.

Upon the first load, the specified camInitDir angle is not applied, and the default camera view is used instead. When the user tries to adjust the camera using the mouse, it immediately switches to the angle set by camInitDir, which feels awkward for the user.

Thank you for your package, it's excellent.

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 with the provided Ecctrl reproduction using camInitDir={{ x: 0.4, y: 0 }} and camCollision={false}, then trace the camera initialization and first mouse adjustment. Done means the initial camera view uses camInitDir immediately and does not jump when the user first moves the mouse.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.