コード例 #1
0
 protected override void init()
 {
     lmb2 = new LitMatrixBlock2(new Vector3 (0.05f, 1f, 0.05f), Colors.GREEN_COLOR);
     axis = new Vector3(0f, 1f, 0f);
     lmb2.SetAxis(axis);
 }
コード例 #2
0
        protected override void init()
        {
            lms1 = new LitMatrixSphere2(0.2f);
            lms2 = new LitMatrixSphere2(0.2f);
            lms2.SetOffset(new Vector3(-0.5f, 0f, 0f));
            lms2.SetColor(0f, 1f, 0f);

            Vector3 size = new Vector3(0.1f, 0.1f, 0.1f);
            Vector3 offset = new Vector3(0.5f, 0.025f, 0f);
            Vector3 axis = new Vector3(1f, 1f, 1f);

            lmb2 = new LitMatrixBlock2(size, Colors.BLUE_COLOR);
            lmb2.SetOffset(offset);
            lmb2.SetAxis(axis);

            SetupDepthAndCull();
        }