Collider Collision 区别
Collision 中带有碰撞的信息,例如:速度和撞击到的点
示例
void OnCollisionEnter2D(Collision2D coll)
{ foreach(ContactPoint contact in coll.contacts)
{
contact.point;//
} }
Collider是受影响的对象
示例
void OnTriggerEnter2D(Collider2D other)
{ other.gameObject.transform.position;
}