Answer the question
In order to leave comments, you need to log in
How to check contact?
There are two objects (a flying projectile and an enemy), both have a collider, movement occurs and the projectile flies through the enemy, the question is how to determine that the projectile has collided?
I looked at the examples and it says the following
void OnCollisionEnter(Collision v){
Debug.Log("tag=>" + v.gameObject.name);
if(v.gameObject.name=="....") .....
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question