group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
TracerEmitter Struct Reference

Component attached to fast-bullet projectile entities. More...

#include <TracerEmitter.hpp>

Public Attributes

glm::vec3 prevPos {}
 Position from previous frame (tail anchor).
 
float radius = 2.0f
 Cross-section half-width in world units.
 
glm::vec4 coreColor {1.f, 0.7f, 0.25f, 1.f}
 Orange-yellow hot core.
 
glm::vec4 edgeColor {1.f, 0.45f, 0.05f, 0.f}
 Deep orange glow, alpha=0 at edge.
 

Detailed Description

Component attached to fast-bullet projectile entities.

The particle system reads this each frame to update the oriented-capsule streak (tip = current pos, tail = tip - direction * streakLength).

Member Data Documentation

◆ coreColor

glm::vec4 TracerEmitter::coreColor {1.f, 0.7f, 0.25f, 1.f}

Orange-yellow hot core.

◆ edgeColor

glm::vec4 TracerEmitter::edgeColor {1.f, 0.45f, 0.05f, 0.f}

Deep orange glow, alpha=0 at edge.

◆ prevPos

glm::vec3 TracerEmitter::prevPos {}

Position from previous frame (tail anchor).

◆ radius

float TracerEmitter::radius = 2.0f

Cross-section half-width in world units.


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