I made a particle I like! And I want it to show up when my player collides with something. I use this script:
void OnCollisionEnter2D(Collision2D other)
{
if (other.gameObject.tag == "Enemy")
{
shake.CamShake();
var point = other.contacts[0].point;
Destroy(gameObject);
var particleEffect = Instantiate(particlePrefab, point, Quaternion.identity);
var playTime = 1f;
Destroy(particleEffect, playTime);
}
}
but when I collide with a triangle it doesn’t look that great. (see the video)
Does someone know how to make it look “better” (and I mean with better just more realistic)
Thx!!!