1
0

Modified physics for more vanilla-like behavior

This commit is contained in:
DevToaster
2015-03-30 19:42:32 -04:00
parent d3aba9ed3f
commit c743c7fd0c
15 changed files with 51 additions and 12 deletions

View File

@@ -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);
}