group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
TeslaBeamEffect::Beam Struct Reference

State for a single sustained, curved beam. More...

Collaboration diagram for TeslaBeamEffect::Beam:
[legend]

Public Attributes

uint32_t key = 0
bool active = false
glm::vec3 origin {0.0f}
glm::vec3 target {0.0f}
float age = 0.f
 Time since creation (drives fade-in).
float keepAlive = 0.f
 Counts down while undriven (drives fade-out).
float time = 0.f
 fBm animation clock.
float seed = 0.f
float warpSeed = 0.f
Branch branches [k_maxBranches] {}
int branchCount = 0
float branchTimer = 0.f

Detailed Description

State for a single sustained, curved beam.

Member Data Documentation

◆ active

bool TeslaBeamEffect::Beam::active = false

◆ age

float TeslaBeamEffect::Beam::age = 0.f

Time since creation (drives fade-in).

◆ branchCount

int TeslaBeamEffect::Beam::branchCount = 0

◆ branches

Branch TeslaBeamEffect::Beam::branches[k_maxBranches] {}

◆ branchTimer

float TeslaBeamEffect::Beam::branchTimer = 0.f

◆ keepAlive

float TeslaBeamEffect::Beam::keepAlive = 0.f

Counts down while undriven (drives fade-out).

◆ key

uint32_t TeslaBeamEffect::Beam::key = 0

◆ origin

glm::vec3 TeslaBeamEffect::Beam::origin {0.0f}

◆ seed

float TeslaBeamEffect::Beam::seed = 0.f

◆ target

glm::vec3 TeslaBeamEffect::Beam::target {0.0f}

◆ time

float TeslaBeamEffect::Beam::time = 0.f

fBm animation clock.

◆ warpSeed

float TeslaBeamEffect::Beam::warpSeed = 0.f

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