VGDC 2025-2026 Club Game
Loading...
Searching...
No Matches
LayerCollisionDetection Class Reference

Matthew Glos 9/12/25. More...

Inheritance diagram for LayerCollisionDetection:
Collaboration diagram for LayerCollisionDetection:

Data Structures

class  LayerEventPair

Public Types

enum  CollisionType { Enter , Stay , Leave }

Public Member Functions

void HandleCollision (int layer, CollisionType currentType)

Detailed Description

Matthew Glos 9/12/25.

General purpose script to detect collisions with objects of a particular layer and call a set of UnityEvents when those collisions occur.

Written to handle the player object colliding with objects with the Hazard tag to trigger the death sequence.

Attach to the object you'd like to detect the collisions, and make sure either a collision or trigger event can happend between the two objects

Member Enumeration Documentation

◆ CollisionType

Enumerator
Enter 
Stay 
Leave 

Member Function Documentation

◆ HandleCollision()

void LayerCollisionDetection.HandleCollision ( int layer,
CollisionType currentType )
inline

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