Facepunch / sbox-issues

175 stars 12 forks source link

Local Space Particles Lag Behind #5200

Closed Fortune117 closed 3 months ago

Fortune117 commented 7 months ago

Describe the bug

I have a particle effect component with the movement space set to Local, but as you can see, the particles lag behind the game object they're attached to.

I think this might be because the game object these particles are attached to are part of the same hierarchy as the camera, which might be the cause the lagging effect.

The particles are a child of the sword, which is a child of the players skeleton. The camera is also a child of the players skeleton.

https://github.com/Facepunch/sbox-issues/assets/7847372/2e2a218a-b77e-45b9-9d86-b86340bb680a

To Reproduce

  1. Attach local movement particles to a game object
  2. See that it lags behind

Expected behavior

Particles should not lag behind.

Media/Files

No response

Additional context

No response

Fortune117 commented 7 months ago

Can also see something fucky with the velocity of particles in this context as well:

https://github.com/Facepunch/sbox-issues/assets/7847372/5de1e99e-0c3d-467c-bb86-aaf1d47420bc

timmybo5 commented 5 months ago

Running into the same issue, would be nice if this got fixed :D

https://github.com/Facepunch/sbox-issues/assets/4988198/b4e293d8-bd98-41d3-a748-a80bc27483bd

Fortune117 commented 3 months ago

bug_repo.zip

repo with bug

aylaylay commented 3 months ago

https://github.com/user-attachments/assets/30bfe1b8-7c06-4fe9-8802-27e417fc7aea

Should be fixed now