Particles not moving

Hello.

I implemented a particle system based on this example. However, some of my particles remain stationary and are not moving. I’ve tried hard to figure out why, but I can’t spot it. Please assist me. My code is here: https://codesandbox.io/p/sandbox/particle-sphere-vn34qs .

It’s not that they’re not moving, they’re just stuck within the boundary constraints you’re defining between lines 218 and 235. You can see it clearly here: JSFiddle.

4 Likes

Thanks @Fennec . Do you have some idea how I can increase the boundary without losing the sharp definition of the sphere. I have tried increasing the boundary but the shape becomes less defined. So I suppose, ideally, the points should be able to move within the sphere but when they hit the surface, they change direction to go back inward.

1 Like

Ok I’ve managed to fix it. The boundary I was defining is a cube instead of spherical hence the loss in shape. Thanks so much for the help.

2 Likes