Search Results for

    Show / Hide Table of Contents

    Class KinematicCharacterControllerHit

    Inheritance
    Object
    KinematicCharacterControllerHit
    Implements
    IControllerColliderHit
    Namespace: nickmaltbie.OpenKCC.Utils
    Assembly: cs.temp.dll.dll
    Syntax
    public class KinematicCharacterControllerHit : IControllerColliderHit

    Constructors

    KinematicCharacterControllerHit(Collider, Rigidbody, GameObject, Transform, Vector3, Vector3, Vector3, Single)

    Create a hit event for a kinematic character controller

    Declaration
    public KinematicCharacterControllerHit(Collider hit, Rigidbody rigidbody, GameObject gameObject, Transform transform, Vector3 point, Vector3 normal, Vector3 moveDirection, float moveLength)
    Parameters
    Type Name Description
    Collider hit

    the collider hit by this character controller

    Rigidbody rigidbody

    the rigidbody hit by this character controller

    GameObject gameObject

    the game object that was hit by this character controller

    Transform transform

    the transform of the game object hit by this character controller

    Vector3 point

    the point that this character controller collided with the object

    Vector3 normal

    the normal vector of the hit between the character controller and the hit object

    Vector3 moveDirection

    the direction the player was moving

    Single moveLength

    the distance the player was moving

    Properties

    collider

    Declaration
    public Collider collider { get; }
    Property Value
    Type Description
    Collider

    gameObject

    Declaration
    public GameObject gameObject { get; }
    Property Value
    Type Description
    GameObject

    moveDirection

    Declaration
    public Vector3 moveDirection { get; }
    Property Value
    Type Description
    Vector3

    moveLength

    Declaration
    public float moveLength { get; }
    Property Value
    Type Description
    Single

    normal

    Declaration
    public Vector3 normal { get; }
    Property Value
    Type Description
    Vector3

    point

    Declaration
    public Vector3 point { get; }
    Property Value
    Type Description
    Vector3

    rigidbody

    Declaration
    public Rigidbody rigidbody { get; }
    Property Value
    Type Description
    Rigidbody

    transform

    Declaration
    public Transform transform { get; }
    Property Value
    Type Description
    Transform

    Implements

    IControllerColliderHit
    In This Article
    Back to top OpenKCC Documentation