MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / Step

Method Step

Examples/StereoKitTest/Demos/DemoManyObjects.cs:27–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 public void Shutdown() { }
26
27 public void Step()
28 {
29 Pose curr = poseCache[0];
30 UI.Handle("Model", ref curr, model.Bounds * 0.04f);
31 poseCache.RemoveAt(poseCache.Count-1);
32 poseCache.Insert(0, curr);
33
34 Mesh.Cube.Draw(Material.UIBox, Matrix.TS(model.Bounds.center*0.04f, model.Bounds.dimensions*0.04f)* curr.ToMatrix());
35
36 for (int y = 0; y < 5; y++)
37 {
38 for (int x = 0; x < 5; x++)
39 {
40 Vec3 grid = new Vec3(x-2f, y-2, 0) ;
41 float dist = Math.Min(1, grid.Length/14.0f);
42 Pose pose = poseCache[(int)(dist * (cacheCount-1))];
43 //pose.position += grid* 0.1f;
44 model.Draw(Matrix.TS(grid*0.1f, 0.04f) * pose.ToMatrix());
45 }
46 }
47
48 Demo.ShowSummary(title, description,
49 new Bounds(.6f, .6f, .1f));
50 }
51}

Callers

nothing calls this directly

Calls 6

HandleMethod · 0.80
TSMethod · 0.80
ToMatrixMethod · 0.80
ShowSummaryMethod · 0.80
DrawMethod · 0.45
MinMethod · 0.45

Tested by

no test coverage detected