summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-13 23:49:05 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-09-13 23:49:05 +0200
commit52d86728e69023f8d70c84f019335b713453aa2d (patch)
tree04bf36a4277dd07557aa90968e615ef511adda55 /src/Entities/Entity.h
parentMerge pull request #1353 from mc-server/Effects (diff)
downloadcuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar.gz
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar.bz2
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar.lz
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar.xz
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.tar.zst
cuberite-52d86728e69023f8d70c84f019335b713453aa2d.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index b9c280b6b..6bc070dcc 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -535,6 +535,12 @@ protected:
virtual void Destroyed(void) {} // Called after the entity has been destroyed
+ /** Applies friction to an entity
+ @param a_Speed The speed vector to apply changes to
+ @param a_SlowdownMultiplier The factor to reduce the speed by
+ */
+ static void ApplyFriction(Vector3d & a_Speed, double a_SlowdownMultiplier, float a_Dt);
+
/** Called in each tick to handle air-related processing i.e. drowning */
virtual void HandleAir(void);