ControllerColliderHit.normalvar normal : Vector3DescriptionThe normal of the surface we collided with in world space.
JavaScript
// print the point's normal we impacted using UnityEngine; import UnityEngine Note: When the CharacterController is colliding with an edge or a corner rather than a flat surface, the reported normal may be different when colliding with BoxColliders than when colliding with MeshColliders. This is due to a limitation in how PhysX handles Capsule/BoxCollider collisions. |
