playcanvas / playcanvas/engine

Particle System with scale in Transform not behaving correctly

Open
#2,170 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Repro (how attached Editor scene was created)

  1. in Editor, create a default ParticleSystem in the scene - it renders white circles moving away from a point. Call it Particle System World
  2. Clone it to Particle System Local, and tick on 'Local Space on it'. Move it to different location. What you see are two visually equivalent systems on the screen.
  3. Apply Scale to Transform of both of these: 0.1, 0.1, 0.1 - and notice that the behavior of the Local one has changed a lot - see attached video, on right side. Left side is correct World space one.
    fx gif

here's the Editor project:
https://playcanvas.com/project/695668/overview/fx-test-local-vs-world

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

Open the linked PlayCanvas Editor project and reproduce the comparison between World and Local Space particle systems after applying a 0.1 scale to their transforms. Compare the Local Space behavior with the World Space reference and use the attached video to identify the discrepancy; done means both systems remain visually equivalent after scaling.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.