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

Written by Matthew Glos. More...

Inheritance diagram for TurretController:
Collaboration diagram for TurretController:

Public Types

enum  TurretType { STATIC_TURRET , TRACKING_TURRET }
 The type of turret behavior. More...

Static Public Member Functions

static Vector2 RotateVector (Vector2 v, float degrees)
 Rotates a 2D vector by a given number of degrees.

Detailed Description

Written by Matthew Glos.

Controls turret behavior, including static and tracking variants.

  • Static turrets fire on a fixed timer.
  • Tracking turrets raycast to detect and rotate toward a player target.

Member Enumeration Documentation

◆ TurretType

The type of turret behavior.

Enumerator
STATIC_TURRET 
TRACKING_TURRET 

Member Function Documentation

◆ RotateVector()

Vector2 TurretController.RotateVector ( Vector2 v,
float degrees )
inlinestatic

Rotates a 2D vector by a given number of degrees.


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