MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / gravity

Method gravity

source/game/StarMovementController.cpp:1115–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115float MovementController::gravity() {
1116 float buoyancy = *m_parameters.liquidBuoyancy * m_liquidPercentage + *m_parameters.airBuoyancy * (1.0f - liquidPercentage());
1117 return world()->gravity(position()) * *m_parameters.gravityMultiplier * (1.0f - buoyancy);
1118}
1119
1120}

Callers 1

tickMasterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected