playcanvas / playcanvas/engine

Particles depend on camera angle

Open
#6,632 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: particles
Dominant language
JavaScript
Stars
16.8k
Forks
2k
Avg merge
4h 32m
Merged PRs (30d)
222

Description

When particles in a particle system set to align to motion, they should only consider their velocity. However, the camera's angle is also included, making them rotate on camera rotation.

Repro: https://playcanvas.com/project/1223253/overview/particle-system-issue

https://github.com/playcanvas/engine/assets/5677782/11119f11-5755-4aee-a132-efee20fa8061

Contributor guide

Open the contributing guide

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 linked PlayCanvas particle-system reproduction and trace the align-to-motion behavior in the engine's particle-system implementation. Verify that particle rotation follows velocity alone and no longer changes when the camera rotates, then add or update coverage if the relevant tests can be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.