标签:style blog color io os div sp log on
void OnCollisionEnter(Collision ctl) { ContactPoint contact = ctl.contacts[0]; Quaternion rot = Quaternion.FromToRotation(Vector3.up, contact.normal); Vector3 pos = contact.point; }
pos 即为碰撞的点的位置
标签:style blog color io os div sp log on
原文地址:http://www.cnblogs.com/zhanlang96/p/3970190.html