|
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 = 15.f |
| Damage dealt on hit. | |
| entt::entity | owner = entt::null |
| Entity that fired this projectile. | |
Component attached to projectile entities.
Velocity comes from the entity's Velocity component. World position comes from the entity's Position component.
| float Projectile::damage = 15.f |
Damage dealt on hit.
| entt::entity Projectile::owner = entt::null |
Entity that fired this projectile.
| WeaponType Projectile::type = WeaponType::Rifle |
Weapon that spawned this projectile.