summaryrefslogtreecommitdiffstats
path: root/source/Entities/Entity.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-07 17:14:37 +0200
committermadmaxoft <github@xoft.cz>2013-09-07 17:14:37 +0200
commit3f4718154bcce6fd06939fcc0f0b20ea7181be1e (patch)
treec46f4da46e44156681ed79fbe5ecb1f65c88d9f6 /source/Entities/Entity.h
parentRemoved an unused include (diff)
downloadcuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar.gz
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar.bz2
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar.lz
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar.xz
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.tar.zst
cuberite-3f4718154bcce6fd06939fcc0f0b20ea7181be1e.zip
Diffstat (limited to 'source/Entities/Entity.h')
-rw-r--r--source/Entities/Entity.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Entities/Entity.h b/source/Entities/Entity.h
index aa5d8fbd2..0e30f230c 100644
--- a/source/Entities/Entity.h
+++ b/source/Entities/Entity.h
@@ -205,6 +205,12 @@ public:
void SetGravity(float a_Gravity) { m_Gravity = a_Gravity; }
+ /// Sets the rotation to match the speed vector (entity goes "face-forward")
+ void SetRotationFromSpeed(void);
+
+ /// Sets the pitch to match the speed vector (entity gies "face-forward")
+ void SetPitchFromSpeed(void);
+
// tolua_end
/// Makes this entity take damage specified in the a_TDI. The TDI is sent through plugins first, then applied