using UnityEngine; namespace NeoCC { public struct NeoCharacterControllerHit { /// /// The character controller that collided. /// public INeoCharacterController controller; /// /// The type of the collision. /// public NeoCharacterCollisionFlags collisionFlags; /// /// The collider that the character collided with. /// public Collider collider; /// /// The rigidbody attached to the object the character collided with (can be null). /// public Rigidbody rigidbody; /// /// The transform of the object the character collided with. /// public Transform transform; /// /// The hit point of the current collision. /// public Vector3 point; /// /// The hit normal of the current collision. /// public Vector3 normal; /// /// The direction the character was moving when it collided. /// public Vector3 moveDirection; public NeoCharacterControllerHit( INeoCharacterController controller, NeoCharacterCollisionFlags collisionFlags, Collider collider, Rigidbody rigidbody, Transform transform, Vector3 point, Vector3 normal, Vector3 moveDirection ) { this.controller = controller; this.collisionFlags = collisionFlags; this.collider = collider; this.rigidbody = rigidbody; this.transform = transform; this.point = point; this.normal = normal; this.moveDirection = moveDirection; } } }