What's the best way to offset the camera to the side
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 797
- Forks
- 98
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Description
i'm trying to have an aim crosshair but that doen't work when the character in the middle of the screen.
what's the recommended approach to push the camera to the side in ecctrl.
example:
edit: i managed to get a close result by setting camTargetPos={{ x: 1, y: 1, z: 0 }} but it's not consistent when i move the camera.
example:
https://github.com/user-attachments/assets/ca71d82e-7dfa-4845-a1a5-cfa47b216ca1
video example of the desired camera behavior while rotating
https://github.com/user-attachments/assets/e3d28d37-b390-401f-a045-408f2003e89e
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
The issue mentions ecctrl and its camTargetPos prop but names no source file, test, or implementation entry point. First inspect how camera targeting and rotation are handled, then clarify the intended offset behavior before defining what a completed change should look like.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100