MCPcopy Index your code
hub / github.com/donsolo-khalifa/FootballKeyPointsExtraction / Update

Method Update

AnimationCode.cs:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16 }
17 void Update() {
18 if (lines.Count == 0) return;
19 var vals = lines[counter].Split(',');
20 for (int i = 0; i < 33; i++) {
21 float x = float.Parse(vals[i * 3 + 0]);
22 float y = float.Parse(vals[i * 3 + 1]);
23 float z = float.Parse(vals[i * 3 + 2]);
24 Body[i].localPosition = new Vector3(x, y, z);
25 }
26 float bx = float.Parse(vals[99]), by = float.Parse(vals[100]), bz = float.Parse(vals[101]);
27 Ball.localPosition = new Vector3(bx, by, bz);
28 counter = (counter + 1) % lines.Count;
29 Thread.Sleep(30);
30
31 }
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected