Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarProjectile.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-09 15:25:23 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-06-09 15:25:23 +1000
commitfc506003035c86914a2d18069871731696b2f173 (patch)
treea5aa32fffff5c750a518d174fdd283b057e4d1af /source/game/StarProjectile.cpp
parent5a99d7b245934d0b609432efb6bf87c269cc07c2 (diff)
add Projectile::velocity
thanks to Bott for suggesting
Diffstat (limited to 'source/game/StarProjectile.cpp')
-rw-r--r--source/game/StarProjectile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/game/StarProjectile.cpp b/source/game/StarProjectile.cpp
index b3f5184..1503f4c 100644
--- a/source/game/StarProjectile.cpp
+++ b/source/game/StarProjectile.cpp
@@ -137,6 +137,10 @@ RectF Projectile::metaBoundBox() const {
return m_config->boundBox;
}
+Vec2F Projectile::velocity() const {
+ return m_movementController->velocity();
+}
+
pair<ByteArray, uint64_t> Projectile::writeNetState(uint64_t fromVersion) {
return m_netGroup.writeNetState(fromVersion);
}