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

Particle visual size vs. collision size #15820

Open
kno10 opened this issue Feb 22, 2025 · 0 comments
Open

Particle visual size vs. collision size #15820

kno10 opened this issue Feb 22, 2025 · 0 comments
Labels
Feature request Issues that request the addition or enhancement of a feature @ Script API

Comments

@kno10
Copy link
Contributor

kno10 commented Feb 22, 2025

Problem

Particle textures may be next to transparent on the outer pixels.
However, collision code uses a bounding box around the particle of +-size/2:

aabb3f box(v3f(-m_p.size / 2.0f), v3f(m_p.size / 2.0f));

Solutions

It may be good to allow adding a multiplier here (because size may be randomized, a factor may be better), i.e., allow specifying collision_size_factor = 0.5.

Alternatives

Specify collision size in absolute values, e.g., mod devs might use minsize=6, maxsize=8, collision_size=4.

Additional context

E.g., smoke particles from campfires clearly should have collisions, but with collisions may have a hard time passing through a chimney node.

@kno10 kno10 added the Feature request Issues that request the addition or enhancement of a feature label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Issues that request the addition or enhancement of a feature @ Script API
Projects
None yet
Development

No branches or pull requests

2 participants