Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").
More...
|
| Trigger (Collider collider, float fixedTime) |
|
| Trigger (Collider2D collider, float fixedTime) |
|
void | Update (float fixedTime) |
| Updates the internal state of the trigger. More...
|
|
void | Set (bool firstContact, Collider2D collider) |
| Sets all the structs fields, based on the callback ("enter" or "stay") and the 2D collider.
|
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
bool | Equals (Collider collider3D) |
|
bool | Equals (Collider2D collider2D) |
|
bool | Equals (Trigger trigger) |
|
|
static bool | operator== (Trigger a, Collider b) |
|
static bool | operator!= (Trigger a, Collider b) |
|
static bool | operator== (Trigger a, Collider2D b) |
|
static bool | operator!= (Trigger a, Collider2D b) |
|
static bool | operator== (Trigger a, Trigger b) |
|
static bool | operator!= (Trigger a, Trigger b) |
|
|
bool | firstContact |
| Flag that indicates the enter state (OnTriggerEnter) of the trigger.
|
|
Collider2D | collider2D |
| The 2D collider component associated with the trigger.
|
|
Collider | collider3D |
| The 3D collider component associated with the trigger.
|
|
GameObject | gameObject |
| The gameObject associated with the trigger.
|
|
Transform | transform |
| The transform associated with the trigger.
|
|
float | fixedTime |
|
Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").
◆ Update()
void Lightbug.Utilities.Trigger.Update |
( |
float |
fixedTime | ) |
|
|
inline |
Updates the internal state of the trigger.
- Parameters
-
The documentation for this struct was generated from the following file:
- C:/Unity/Projects/CCP v1/Assets/Character Controller Pro/Main/Utilities/Scripts/Trigger.cs