Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParticleEmitter doesn't respect parented positioning #2437

Closed
eonarheim opened this issue Jul 28, 2022 · 0 comments · Fixed by #2438
Closed

ParticleEmitter doesn't respect parented positioning #2437

eonarheim opened this issue Jul 28, 2022 · 0 comments · Fixed by #2438
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior

Comments

@eonarheim
Copy link
Member

Steps to Reproduce

ParticleEmitter doesn't respect positioning when added to a Entity as a child.

See discussion #2433 (reply in thread)

Expected Result

ParticleEmitter should follow the standard parent/child relationship

Actual Result

Does not position properly

Environment

  • browsers and versions: N/A
  • operating system: N/A
  • Excalibur versions: v0.27.0

Current Workaround

Manually set the position

emitter.onPreUpdate = () => {
  emitter.pos = actor.pos;
}
@eonarheim eonarheim added the bug This issue describes undesirable, incorrect, or unexpected behavior label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant