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

Pending explosion to process this tick. More...

#include <Explosion.hpp>

Public Attributes

glm::vec3 position {0.0f}
 World-space center of the explosion.
float radius = 0.0f
 Blast radius (damage falls off via falloffExponent).
float maxDamage = 0.0f
 Maximum damage at the epicenter.
float falloffExponent = 1.0f
 Damage curve exponent: damage = maxDamage * pow(1 - d/r, exp).
float selfDamageMultiplier = 1.0f
 Damage scale when victim == owner (rocket-jump friendliness).
float maxKnockback = 0.0f
 Peak knockback velocity (u/s) at d=0. 0 disables knockback.
float knockbackFalloffExponent = 1.0f
 Knockback curve exponent (same form as damage falloff).
entt::entity owner = entt::null
 Entity that caused the explosion (for kill credit).

Detailed Description

Pending explosion to process this tick.

Member Data Documentation

◆ falloffExponent

float Explosion::falloffExponent = 1.0f

Damage curve exponent: damage = maxDamage * pow(1 - d/r, exp).

1.0 = linear, 3.0 = cubic (sharp falloff).

◆ knockbackFalloffExponent

float Explosion::knockbackFalloffExponent = 1.0f

Knockback curve exponent (same form as damage falloff).

◆ maxDamage

float Explosion::maxDamage = 0.0f

Maximum damage at the epicenter.

◆ maxKnockback

float Explosion::maxKnockback = 0.0f

Peak knockback velocity (u/s) at d=0. 0 disables knockback.

◆ owner

entt::entity Explosion::owner = entt::null

Entity that caused the explosion (for kill credit).

◆ position

glm::vec3 Explosion::position {0.0f}

World-space center of the explosion.

◆ radius

float Explosion::radius = 0.0f

Blast radius (damage falls off via falloffExponent).

◆ selfDamageMultiplier

float Explosion::selfDamageMultiplier = 1.0f

Damage scale when victim == owner (rocket-jump friendliness).


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