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

Fix ParticlesMaterial collision friction/bounce at low velocity #61245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 21, 2022

  • Scale down bounce if the particle velocity is low (relative to the bounce multiplier chosen). This prevents particles from bouncing forever at low amplitude, which looks odd.
  • Don't allow the computed friction multiplier to go above 1.0. This prevents particles from spazzing out after stopping.

Particles that used to jitter all over the place now look very smooth, even when Fixed Fps is decreased to 20 (as long as interpolation is enabled).

I tested this PR on the MRPs linked in #57249 and #57197.

This closes #57249.

- Scale down bounce if the particle velocity is low
  (relative to the bounce multiplier chosen).
  This prevents particles from bouncing forever at low amplitude,
  which looks odd.
- Don't allow the computed friction multiplier to go above 1.0.
  This prevents particles from spazzing out after stopping.

Particles that used to jitter all over the place now look
very smooth, even when Fixed Fps is decreased to 20
(as long as interpolation is enabled).
@Calinou Calinou force-pushed the particlesmaterial-fix-collision-friction-bounce branch from 21a8ca8 to 6139a46 Compare May 21, 2022 11:16
@Calinou Calinou changed the title Fix ParticlesMaterial collision friction/bounce acting Fix ParticlesMaterial collision friction/bounce at low velocity May 21, 2022
@reduz
Copy link
Member

reduz commented Oct 27, 2022

Does not look like a correct relationship (bounce multiplier is a ratio and velocity is an absolute value), i wonder if a separate threshold should be added for this.

@akien-mga akien-mga modified the milestones: 4.0, 4.1 Feb 14, 2023
@clayjohn clayjohn modified the milestones: 4.1, 4.x Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan: Add a bounce threshold to GPUParticles to skip bouncing if the velocity is too low
5 participants