Entities fall 3x slower in water
This commit is contained in:
parent
49d69a0228
commit
f260e9211f
@ -529,7 +529,7 @@ void cEntity::HandlePhysics(float a_Dt, cChunk & a_Chunk)
|
||||
float fallspeed;
|
||||
if (IsBlockWater(BlockIn))
|
||||
{
|
||||
fallspeed = -3.0f * a_Dt; // Fall slower in water.
|
||||
fallspeed = m_Gravity * a_Dt / 3; // Fall 3x slower in water.
|
||||
}
|
||||
else if (BlockIn == E_BLOCK_COBWEB)
|
||||
{
|
||||
|
@ -163,7 +163,7 @@ public:
|
||||
void SetPosY (double a_PosY);
|
||||
void SetPosZ (double a_PosZ);
|
||||
void SetPosition(double a_PosX, double a_PosY, double a_PosZ);
|
||||
void SetPosition(const Vector3d & a_Pos) { SetPosition(a_Pos.x,a_Pos.y,a_Pos.z);}
|
||||
void SetPosition(const Vector3d & a_Pos) { SetPosition(a_Pos.x, a_Pos.y, a_Pos.z); }
|
||||
void SetRot (const Vector3f & a_Rot);
|
||||
void SetRotation(double a_Rotation);
|
||||
void SetPitch (double a_Pitch);
|
||||
|
Loading…
Reference in New Issue
Block a user