Version: 2017.2
public Vector3 normal ;

描述

接触点的法线。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnCollisionEnter(Collision other) { print("Points colliding: " + other.contacts.Length); print("First normal of the point that collide: " + other.contacts[0].normal); } }