Particles don't bounce in game, but do in editor
I'm trying to make a simple test game in 2D, in which you can shoot a projectile against a surface and a particle effect appears as an explosion. When I test the particle effect in the editor it looks as I would expect with particles bouncing off the surface in every direction. When I try it out in the game though, it looks very different. The particles mostly slide off the surface as if they are stuck to it.
I hope it's visible in these screenshots. In the editor the particles look like this (emitted in a circle shape):
In the game it looks like this (not emitting up, but only sliding off the surface):
The particles are started in a script attached to the projectile and works as such:
public class Projectile : MonoBehaviour
{
public ParticleSystem particles;
private void OnCollisionEnter2D(Collision2D collision)
{
Instantiate(particles, transform.position, Quaternion.identity);
Destroy(gameObject);
}
}
I'm still very new to Unity and I haven't been able to find this problem on any forums.