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

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

Inheritance diagram for Lightbug.Utilities.Trigger:

Public Member Functions

 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 Public Member Functions

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)
 

Public Attributes

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
 

Detailed Description

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

Member Function Documentation

◆ Update()

void Lightbug.Utilities.Trigger.Update ( float  fixedTime)
inline

Updates the internal state of the trigger.

Parameters
fixedTime

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