- Home /
Question by
unity_7CH9LhnjXFROtg · Jun 23, 2019 at 04:10 PM ·
colliderparticlesystem
Particles colliding but object doesnt enter OnCollisionEnter function
I have non kinematic rigidbody attached but still doesnt enter the function but clearly all particles collide with gameobject.
public class BTNManipulation : MonoBehaviour
{
private void Start() {
Debug.Log("wlojhn");
}
public Button btn;
public Light lt;
public Light lt2;
private void OnCollisionEnter(Collision other) {
btn.gameObject.SetActive(true);
Debug.Log("kjbasdgk");
// if(n>0){
if(lt.intensity < 1.0f){
lt.intensity += .02f;
}
if(lt2.intensity < 3.0f){
lt2.intensity += .5f;
}
}
}
Comment
Your answer
