Character Controller Pro 1.4.11
A 2D/3D character controller asset for Unity.
Lightbug.Utilities.Contact Struct Reference

Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay"). More...

Public Member Functions

 Contact (bool firstContact, ContactPoint2D contact, Collision2D collision)
 
 Contact (bool firstContact, ContactPoint contact, Collision collision)
 
 Contact (Vector3 point, Vector3 normal, Vector3 pointVelocity, Vector3 relativeVelocity)
 

Public Attributes

readonly bool firstContact
 Flag that indicates the enter state (OnContactEnter) of the contact.
 
readonly Vector3 point
 The contact point.
 
readonly Vector3 normal
 The contact normal.
 
readonly Collider2D collider2D
 The 2D collider component associated with the collided object.
 
readonly Collider collider3D
 The 3D collider component associated with the collided object.
 
readonly bool isRigidbody
 Flag that indicates if the collided object is a rigidbody or not.
 
readonly bool isKinematicRigidbody
 Flag that indicates if the collided object is a kinematic rigidbody or not.
 
readonly Vector3 relativeVelocity
 The relative velocity of the rigidbody associated.
 
readonly Vector3 pointVelocity
 The contact point velocity. This value corresponds to the ground rigidbody velocity.
 
readonly GameObject gameObject
 The gameObject representing the collided object.
 

Detailed Description

Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").


The documentation for this struct was generated from the following file: