summaryrefslogtreecommitdiffstats
path: root/src/Entities/ArrowEntity.cpp
diff options
context:
space:
mode:
authorDevToaster <blazetoaster@gmail.com>2015-03-31 01:42:32 +0200
committerDevToaster <blazetoaster@gmail.com>2015-03-31 01:42:32 +0200
commitc743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4 (patch)
treeaef0d73b4a70ea991894dd1f739f074a622485ef /src/Entities/ArrowEntity.cpp
parentQtBiomeVisualiser: Fixed compilation and INI loading. (diff)
downloadcuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar.gz
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar.bz2
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar.lz
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar.xz
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.tar.zst
cuberite-c743c7fd0cc12bf10d76ecb8cdcb8029ed8429a4.zip
Diffstat (limited to 'src/Entities/ArrowEntity.cpp')
-rw-r--r--src/Entities/ArrowEntity.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp
index 3c1fabb1b..3516b7540 100644
--- a/src/Entities/ArrowEntity.cpp
+++ b/src/Entities/ArrowEntity.cpp
@@ -21,6 +21,8 @@ cArrowEntity::cArrowEntity(cEntity * a_Creator, double a_X, double a_Y, double a
{
SetSpeed(a_Speed);
SetMass(0.1);
+ SetGravity(-20.0f);
+ SetAirDrag(0.2f);
SetYawFromSpeed();
SetPitchFromSpeed();
LOGD("Created arrow %d with speed {%.02f, %.02f, %.02f} and rot {%.02f, %.02f}",
@@ -48,6 +50,8 @@ cArrowEntity::cArrowEntity(cPlayer & a_Player, double a_Force) :
{
m_PickupState = psInCreative;
}
+ SetGravity(-20.0f);
+ SetAirDrag(0.2f);
}