Unity Particle Collision not working
I checked out a lot of online forums but I don't think I'm missing anything? I am working on a 2D project by the way. I attached some images for reference but basically, my particle type has already been set to world, set Collide with Everything, dynamic collision enabled, send collision enabled, and world 3D.
I attached this script to the object my particles would be colliding with: I am currently just trying to get the debug to print. The object I am colliding with has a rigidbody 2d, and is trigger not enabled.
What else should I do? Had to add the third image in a reply by the way - that image shows some of the settings on the object the particles are colliding with.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticleProjectile : MonoBehaviour
{
void Start()
{
}
void Update()
{
}
void OnParticleCollision(GameObject otherCollider)
{
Debug.Log("Collided");
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613022227im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How can I change the scale of a GameObject through collision of particles with that gameObject? 1 Answer
Particles Instantiate doesnt show up (Hidden behind background image) 0 Answers
Start collision detection of particles after certain time 0 Answers
Little dust particles after player jump hitting ground 2 Answers