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

Method Add

game/src/main/java/jake2/game/PlayerTrail.java:78–92  ·  view source on GitHub ↗
(float[] spot, float time)

Source from the content-addressed store, hash-verified

76 }
77
78 void Add(float[] spot, float time) {
79 float[] temp = { 0, 0, 0 };
80
81 if (!trail_active)
82 return;
83
84 Math3D.VectorCopy(spot, trail[trail_head].s.origin);
85
86 trail[trail_head].timestamp = time;
87
88 Math3D.VectorSubtract(spot, trail[PREV(trail_head)].s.origin, temp);
89 trail[trail_head].s.angles[1] = Math3D.vectoyaw(temp);
90
91 trail_head = NEXT(trail_head);
92 }
93
94 SubgameEntity PickFirst(SubgameEntity self) {
95

Callers 1

Calls 5

VectorCopyMethod · 0.95
VectorSubtractMethod · 0.95
PREVMethod · 0.95
vectoyawMethod · 0.95
NEXTMethod · 0.95

Tested by

no test coverage detected