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

Oriented capsule streak for fast-bullet tracers (R301 style). More...

#include <ParticleTypes.hpp>

Public Attributes

glm::vec3 tip
 World-space front of streak (current bullet pos).
 
float radius
 Cross-section half-width (~0.6 units).
 
glm::vec3 tail
 World-space back (tip - normalize(vel) * streakLen).
 
float brightness
 1.0→0.0 fade at end of life.
 
glm::vec4 coreColor
 Bright yellow-white.
 
glm::vec4 edgeColor
 Orange, alpha=0 at edge.
 
float lifetime
 
float _pad [3]
 

Detailed Description

Oriented capsule streak for fast-bullet tracers (R301 style).

Member Data Documentation

◆ _pad

float TracerParticle::_pad[3]

◆ brightness

float TracerParticle::brightness

1.0→0.0 fade at end of life.

◆ coreColor

glm::vec4 TracerParticle::coreColor

Bright yellow-white.

◆ edgeColor

glm::vec4 TracerParticle::edgeColor

Orange, alpha=0 at edge.

◆ lifetime

float TracerParticle::lifetime

◆ radius

float TracerParticle::radius

Cross-section half-width (~0.6 units).

◆ tail

glm::vec3 TracerParticle::tail

World-space back (tip - normalize(vel) * streakLen).

◆ tip

glm::vec3 TracerParticle::tip

World-space front of streak (current bullet pos).


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