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

Method Step

Examples/StereoKitTest/Docs/DocHandleNode.cs:24–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 public void Step()
25 {
26 UI.PushSurface(modelPose);
27
28 handleNode.ModelTransform.Decompose(out Vec3 pos, out Quat rot, out Vec3 scale);
29 Pose handlePose = new Pose(pos, rot);
30 if (UI.Handle("modelHandle", ref handlePose, handleNode.Mesh.Bounds))
31 handleNode.ModelTransform = handlePose.ToMatrix(scale);
32
33 UI.PopSurface();
34 model.Draw(modelPose.ToMatrix());
35 }
36
37 public void Shutdown() { }
38}

Callers

nothing calls this directly

Calls 6

PushSurfaceMethod · 0.80
DecomposeMethod · 0.80
HandleMethod · 0.80
ToMatrixMethod · 0.80
PopSurfaceMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected