diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-10-21 18:53:24 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-10-21 18:53:24 +0200 |
commit | 744cdb726d1a036c29a8038775ab2e758c25a087 (patch) | |
tree | cdd342bd4efea697ddb34c2df6edc252cb5ccced /src/Entities/Minecart.h | |
parent | Updated the README (#4060) (diff) | |
download | cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar.gz cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar.bz2 cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar.lz cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar.xz cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.tar.zst cuberite-744cdb726d1a036c29a8038775ab2e758c25a087.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Minecart.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Minecart.h b/src/Entities/Minecart.h index f1f499328..99885faf9 100644 --- a/src/Entities/Minecart.h +++ b/src/Entities/Minecart.h @@ -51,6 +51,9 @@ protected: Vector3i m_DetectorRailPosition; bool m_bIsOnDetectorRail; + /** Applies an acceleration to the minecart parallel to a_ForwardDirection but without allowing backward speed. */ + void ApplyAcceleration(Vector3d a_ForwardDirection, double a_Acceleration); + // Overwrite to enforce speed limit virtual void DoSetSpeed(double a_SpeedX, double a_SpeedY, double a_SpeedZ) override; |