MCPcopy Create free account
hub / github.com/demoth/jake2 / SV_AddGravity

Method SV_AddGravity

game/src/main/java/jake2/game/SV.java:240–242  ·  view source on GitHub ↗

SV_AddGravity.

(SubgameEntity ent, float gravity)

Source from the content-addressed store, hash-verified

238 * SV_AddGravity.
239 */
240 private static void SV_AddGravity(SubgameEntity ent, float gravity) {
241 ent.velocity[2] -= ent.gravity * gravity * Defines.FRAMETIME;
242 }
243
244 /**
245 * Does not change the entities velocity at all

Callers 2

SV_Physics_TossMethod · 0.95
SV_Physics_StepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected