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

Method G_SetMovedir

game/src/main/java/jake2/game/GameBase.java:188–198  ·  view source on GitHub ↗
(float[] angles, float[] movedir)

Source from the content-addressed store, hash-verified

186 private static final float[] MOVEDIR_DOWN = { 0, 0, -1 };
187
188 public static void G_SetMovedir(float[] angles, float[] movedir) {
189 if (Math3D.VectorEquals(angles, VEC_UP)) {
190 Math3D.VectorCopy(MOVEDIR_UP, movedir);
191 } else if (Math3D.VectorEquals(angles, VEC_DOWN)) {
192 Math3D.VectorCopy(MOVEDIR_DOWN, movedir);
193 } else {
194 Math3D.AngleVectors(angles, movedir, null, null);
195 }
196
197 Math3D.VectorClear(angles);
198 }
199
200 static void G_TouchTriggers(SubgameEntity ent, GameExportsImpl gameExports) {
201 int i;

Callers 8

thinkMethod · 0.95
triggerMultipleFunction · 0.80
initTriggerFunction · 0.80
targetSplashFunction · 0.80
targetSpawnerFunction · 0.80
targetBlasterFunction · 0.80
funcWaterFunction · 0.80
funcButtonFunction · 0.80

Calls 4

VectorEqualsMethod · 0.95
VectorCopyMethod · 0.95
AngleVectorsMethod · 0.95
VectorClearMethod · 0.95

Tested by

no test coverage detected