When camCollision is disabled, camInitDir is initially ineffective.

Open
#86 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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.

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

  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.

More from pmndrs/ecctrl

All issues in pmndrs/ecctrl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.