private void OnCollisionEnter2D(Collision2D collision) {
if (collision.contacts != null) {
Vector3 vector = collision.GetContact(0).normal; //碰撞位置
print(vector);
}
}
Unity 碰撞位置
最新推荐文章于 2024-06-26 21:32:29 发布