Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").
More...
|
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.
|
|
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:
- C:/Unity/Projects/CCP v1/Assets/Character Controller Pro/Main/Utilities/Scripts/Contact.cs