|
group2 0.1.0
CSE 125 Group 2
|
Component attached to projectile entities. More...
#include <Projectile.hpp>
Public Attributes | |
| WeaponType | type = WeaponType::Rifle |
| Weapon that spawned this projectile. | |
| float | damage = 0.0f |
| Damage dealt on hit. | |
| entt::entity | owner = entt::null |
| Entity that fired this projectile. | |
| bool | explosive = false |
| True if the projectile detonates on impact. | |
| float | currentLifeTime = 0.0f |
| Seconds since spawn (destroyed when exceeding max). | |
Component attached to projectile entities.
Velocity comes from the entity's Velocity component. World position comes from the entity's Position component.
| float Projectile::currentLifeTime = 0.0f |
Seconds since spawn (destroyed when exceeding max).
| float Projectile::damage = 0.0f |
Damage dealt on hit.
| bool Projectile::explosive = false |
True if the projectile detonates on impact.
| entt::entity Projectile::owner = entt::null |
Entity that fired this projectile.
| WeaponType Projectile::type = WeaponType::Rifle |
Weapon that spawned this projectile.