📅  最后修改于: 2022-03-11 14:56:17.194000             🧑  作者: Mango
OnCollisionEnter(Collision collision)
{
ContactPoint contact = collision.contacts[0];
Quaternion rotation = Quaternion.FromToRotation(Vector3.up, contact.normal);
Vector3 position = contact.point;
Vector3 relativeVelocity = collision.relativeVelocity;
}