Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").
More...
|
void | Set (bool firstContact, Collider collider) |
| Sets all the structs fields, based on the callback ("enter" or "stay") and the 3D collider. More...
|
|
void | Set (bool firstContact, Collider2D collider) |
| Sets all the structs fields, based on the callback ("enter" or "stay") and the 2D collider. More...
|
|
Struct that contains the information of the contact, gathered from the collision message ("enter" and "stay").
◆ Set() [1/2]
void Lightbug.Utilities.Trigger.Set |
( |
bool |
firstContact, |
|
|
Collider |
collider |
|
) |
| |
|
inline |
Sets all the structs fields, based on the callback ("enter" or "stay") and the 3D collider.
◆ Set() [2/2]
void Lightbug.Utilities.Trigger.Set |
( |
bool |
firstContact, |
|
|
Collider2D |
collider |
|
) |
| |
|
inline |
Sets all the structs fields, based on the callback ("enter" or "stay") and the 2D collider.
◆ collider2D
Collider2D Lightbug.Utilities.Trigger.collider2D |
The 2D collider component associated with the trigger.
◆ collider3D
Collider Lightbug.Utilities.Trigger.collider3D |
The 3D collider component associated with the trigger.
◆ firstContact
bool Lightbug.Utilities.Trigger.firstContact |
Flag that indicates if this contact was created in the OnCollisionEnter (2D/3D) message.
◆ gameObject
GameObject Lightbug.Utilities.Trigger.gameObject |
The gameObject representing the trigger.
◆ transform
Transform Lightbug.Utilities.Trigger.transform |
The gameObject representing the trigger.
The documentation for this struct was generated from the following file:
- C:/Unity/Projects/character-controller-pro/Assets/Character Controller Pro/Utilities/Scripts/Trigger.cs