summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorDevToaster <blazetoaster@gmail.com>2015-03-31 17:03:35 +0200
committerDevToaster <blazetoaster@gmail.com>2015-03-31 17:03:35 +0200
commit45c84ea93318a4ab8921a20d7d2c086cfc313999 (patch)
tree2e802814ec3da8fa341e9ad73a588f01fd4b5e2d /src/Entities/Entity.cpp
parentAdjusted projectile physics (diff)
downloadcuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar.gz
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar.bz2
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar.lz
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar.xz
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.tar.zst
cuberite-45c84ea93318a4ab8921a20d7d2c086cfc313999.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 67dae44b2..51cee248e 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -36,7 +36,7 @@ cEntity::cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, d
m_bHasSentNoSpeed(true),
m_bOnGround(false),
m_Gravity(-9.81f),
- m_AirDrag(0.4f),
+ m_AirDrag(0.02f),
m_LastPos(a_X, a_Y, a_Z),
m_IsInitialized(false),
m_WorldTravellingFrom(nullptr),
@@ -944,7 +944,7 @@ void cEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
// Normal gravity
fallspeed = m_Gravity * DtSec.count();
- NextSpeed -= NextSpeed * m_AirDrag * DtSec.count();
+ NextSpeed -= NextSpeed * (m_AirDrag * 20.0f) * DtSec.count();
}
NextSpeed.y += static_cast<float>(fallspeed);
}