Character Controller Pro  1.3.8
A 2D/3D character controller asset for the Unity Engine.
Lightbug.Utilities.Trigger Struct Reference

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

Public Member Functions

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...
 

Public Attributes

bool firstContact
 Flag that indicates if this contact was created in the OnCollisionEnter (2D/3D) message. More...
 
Collider2D collider2D
 The 2D collider component associated with the trigger. More...
 
Collider collider3D
 The 3D collider component associated with the trigger. More...
 
GameObject gameObject
 The gameObject representing the trigger. More...
 
Transform transform
 The gameObject representing the trigger. More...
 

Detailed Description

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

Member Function Documentation

◆ 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.

Member Data Documentation

◆ 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: