| 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 | } |