thanks in advanceIm trying to make my bullets (which are bubbles ) to get stuck when collide with other objects (which are also bubbles) in the scene , I tried doing that by making it kinematic once it hits the target but didnt work . This is my first question here . thanks in advance for your help this is my script :
public class Bullet_Fire : MonoBehaviour
{
public float bulletForce = 750.0f;
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.tag == "FirePoint") GetComponent<Rigidbody2D>().AddForce(transform.right * bulletForce);
else if (col.gameObject.tag == "Bubble") GetComponent<Rigidbody2D>().isKinematic = true;
}
}