|
group2 0.1.0
CSE 125 Group 2
|
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). | |
Pending explosion to process this tick.
| float Explosion::falloffExponent = 1.0f |
Damage curve exponent: damage = maxDamage * pow(1 - d/r, exp).
1.0 = linear, 3.0 = cubic (sharp falloff).
| float Explosion::knockbackFalloffExponent = 1.0f |
Knockback curve exponent (same form as damage falloff).
| float Explosion::maxDamage = 0.0f |
Maximum damage at the epicenter.
| float Explosion::maxKnockback = 0.0f |
Peak knockback velocity (u/s) at d=0. 0 disables knockback.
| entt::entity Explosion::owner = entt::null |
Entity that caused the explosion (for kill credit).
| glm::vec3 Explosion::position {0.0f} |
World-space center of the explosion.
| float Explosion::radius = 0.0f |
Blast radius (damage falls off via falloffExponent).
| float Explosion::selfDamageMultiplier = 1.0f |
Damage scale when victim == owner (rocket-jump friendliness).